Update async using keyword arguments
(self)
| 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" |
nothing calls this directly
no test coverage detected