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

Method test_update_kw

lantz/testsuite/test_driver.py:84–92  ·  view source on GitHub ↗

Update using keyword arguments

(self)

Source from the content-addressed store, hash-verified

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"

Callers

nothing calls this directly

Calls 2

updateMethod · 0.80
aDriverClass · 0.70

Tested by

no test coverage detected