def test_get_removes_matched_value(self): os = ObjectStore([{'a': 1}, {'b': 5, 'c': 6}]) self.assertEqual({'b': 5, 'c': 6}, os.get({'b': 5})) self.assertEqual(1, os.size())
def test_get_value_with_match(self): os = ObjectStore([{'a': 1}, {'b': 5, 'c': 6}]) self.assertEqual({'b': 5, 'c': 6}, os.get({'b': 5}))