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

Method test_update_dict

lantz/testsuite/test_driver.py:94–102  ·  view source on GitHub ↗

Update using a dictionary

(self)

Source from the content-addressed store, hash-verified

92 self.assertEqual(obj.ham, 21)
93
94 def test_update_dict(self):
95 "Update using a dictionary"
96 obj = aDriver()
97 obj.update({'eggs': 3})
98 self.assertEqual(obj.eggs, 3)
99
100 obj.update({'eggs': 4, 'ham': 22})
101 self.assertEqual(obj.eggs, 4)
102 self.assertEqual(obj.ham, 22)
103
104 def test_update_async_kw(self):
105 "Update async using keyword arguments"

Callers

nothing calls this directly

Calls 2

updateMethod · 0.80
aDriverClass · 0.70

Tested by

no test coverage detected