3 # Unix SMB/CIFS implementation.
4 # Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2007
6 # ** NOTE! The following LGPL license applies to the tevent
7 # ** library. This does NOT imply that all of Samba is released
10 # This library is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU Lesser General Public
12 # License as published by the Free Software Foundation; either
13 # version 3 of the License, or (at your option) any later version.
15 # This library is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 # Lesser General Public License for more details.
20 # You should have received a copy of the GNU Lesser General Public
21 # License along with this library; if not, see <http://www.gnu.org/licenses/>.
27 # Just test the bindings are there and that calling them doesn't crash
30 class TEventTestCase(unittest
.TestCase
):
31 def test_create(self
):
32 self
.assertTrue(tevent
.TEventContext() is not None)
34 def test_loop_wait(self
):
35 self
.assertEquals(0, tevent
.TEventContext().loop_wait())