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