MCPcopy Create free account
hub / github.com/LabPy/lantz / test_update_async_dict

Method test_update_async_dict

lantz/testsuite/test_driver.py:119–132  ·  view source on GitHub ↗

Update async using a dictionary

(self)

Source from the content-addressed store, hash-verified

117 self.assertEqual(obj._ham, 21)
118
119 def test_update_async_dict(self):
120 "Update async using a dictionary"
121 obj = aDriver(True, name='test_update_async_dict')
122 obj.update_async({'eggs': 3})
123 self.assertNotEqual(obj._eggs, 3)
124 sleep(SLEEP + WAIT)
125 self.assertEqual(obj._eggs, 3)
126
127 obj.update_async({'eggs': 4, 'ham': 22})
128 self.assertNotEqual(obj._eggs, 4)
129 self.assertNotEqual(obj._ham, 22)
130 sleep(2 * SLEEP + WAIT)
131 self.assertEqual(obj._eggs, 4)
132 self.assertEqual(obj._ham, 22)
133
134 def test_update_async_unfinished_tasks(self):
135 obj = aDriver(True)

Callers

nothing calls this directly

Calls 2

update_asyncMethod · 0.80
aDriverClass · 0.70

Tested by

no test coverage detected