Update using keyword arguments
(self)
| 82 | self.assertEqual(repr(obj3), "<bDriver('second')>") |
| 83 | |
| 84 | def test_update_kw(self): |
| 85 | "Update using keyword arguments" |
| 86 | obj = aDriver() |
| 87 | obj.update(eggs=1) |
| 88 | self.assertEqual(obj.eggs, 1) |
| 89 | |
| 90 | obj.update(eggs=2, ham=21) |
| 91 | self.assertEqual(obj.eggs, 2) |
| 92 | self.assertEqual(obj.ham, 21) |
| 93 | |
| 94 | def test_update_dict(self): |
| 95 | "Update using a dictionary" |