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