MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / test_add2

Method test_add2

tests/utils/test_component_store.py:43–52  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

41 self.assertEqual(self.cs["test_obj"], test_obj)
42
43 def test_add2(self):
44 test_obj1 = object()
45 test_obj2 = object()
46
47 self.cs.add("test_obj1", "Test object", test_obj1)
48 self.cs.add("test_obj2", "Test object", test_obj2)
49
50 self.assertEqual(len(self.cs), 2)
51 self.assertIn("test_obj1", self.cs)
52 self.assertIn("test_obj2", self.cs)
53
54 def test_add_def(self):
55 self.assertNotIn("test_func", self.cs)

Callers

nothing calls this directly

Calls 1

addMethod · 0.80

Tested by

no test coverage detected