Total Complexity | 4 |
Total Lines | 13 |
Duplicated Lines | 0 % |
1 | import unittest |
||
20 | class coalaDbusTest(unittest.TestCase): |
||
21 | |||
22 | def setUp(self): |
||
23 | self.glib_main_loop = GLib.MainLoop |
||
24 | GLib.MainLoop = GlibMainLoopTest |
||
25 | |||
26 | def tearDown(self): |
||
27 | GLib.MainLoop = self.glib_main_loop |
||
28 | |||
29 | def test_main(self): |
||
30 | # Ensure we are able to setup dbus and create a mainloop |
||
31 | with self.assertRaises(AssertionError): |
||
32 | coala_dbus.main() |
||
33 |