def test_creation(self): os = ObjectStore() self.assertEqual(0, os.size())
def test_put_value(self): os = ObjectStore() os.put({'a': 1}) self.assertEqual(1, os.size())
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())