5 from .
import simplebridge
11 loop = asyncio.get_event_loop()
12 res = loop.run_until_complete(simplebridge.get_value_x5(val))
13 self.assertEqual(val * 5, res)
16 loop = asyncio.get_event_loop()
17 with self.assertRaises(ValueError, msg=
"0 is not allowed"):
18 loop.run_until_complete(simplebridge.get_value_x5(0))
22 loop = asyncio.get_event_loop()
23 res = loop.run_until_complete(simplebridge.get_value_x5_fibers(val))
24 self.assertEqual(val * 5, res)
def test_bridge_fibers(self)
def test_bridge_exception(self)