5 class TestLoop(unittest
.TestCase
):
9 self
.assertEqual(juju
.loop
.run(_test()), 'success')
11 def test_run_interrupt(self
):
13 juju
.loop
.run
._sigint
= True
14 self
.assertRaises(KeyboardInterrupt, juju
.loop
.run
, _test())
16 def test_run_exception(self
):
19 self
.assertRaises(ValueError, juju
.loop
.run
, _test())