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

Method test_update_async_kw

lantz/testsuite/test_driver.py:104–117  ·  view source on GitHub ↗

Update async using keyword arguments

(self)

Source from the content-addressed store, hash-verified

102 self.assertEqual(obj.ham, 22)
103
104 def test_update_async_kw(self):
105 "Update async using keyword arguments"
106 obj = aDriver(True)
107 obj.update_async(eggs=1)
108 self.assertNotEqual(obj._eggs, 1)
109 sleep(SLEEP + WAIT)
110 self.assertEqual(obj._eggs, 1)
111
112 obj.update_async(eggs=2, ham=21)
113 self.assertNotEqual(obj._eggs, 2)
114 self.assertNotEqual(obj._ham, 21)
115 sleep(2 * SLEEP + WAIT)
116 self.assertEqual(obj._eggs, 2)
117 self.assertEqual(obj._ham, 21)
118
119 def test_update_async_dict(self):
120 "Update async using a dictionary"

Callers

nothing calls this directly

Calls 2

update_asyncMethod · 0.80
aDriverClass · 0.70

Tested by

no test coverage detected