Fix coverity #901 - uninitialized data.
[Samba.git] / lib / tevent / tests.py
blob53e00b03c643b1b20c3309c38712df60a656310f
1 #!/usr/bin/python
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
8 # ** under the LGPL
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/>.
24 import tevent
25 import unittest
27 # Just test the bindings are there and that calling them doesn't crash
28 # anything.
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())