diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2019-04-27 16:05:25 +0200 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2019-04-27 16:05:25 +0200 |
commit | 04d349cae45b2d37f009fe87113615eb7093d6e6 (patch) | |
tree | a2425938245de26803988acafe4e3fbd34c5e0d1 /tests/test_memory_store.py | |
parent | decd9a8b86410386783df7c9faa8b4d90febe09b (diff) |
Remove concept of unknown object type
Diffstat (limited to 'tests/test_memory_store.py')
-rw-r--r-- | tests/test_memory_store.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/test_memory_store.py b/tests/test_memory_store.py index 8c19954..899a776 100644 --- a/tests/test_memory_store.py +++ b/tests/test_memory_store.py @@ -15,18 +15,13 @@ class TestMemoryStore(unittest.TestCase): oid = 'https://test/object/12345' obj = objects.Object(id=oid) self.store.add(obj) - self.assertIn('object', self.store.objects) - self.assertIn(oid, self.store.objects['object']) + self.assertIn(oid, self.store.objects) def test_get_object(self): - res = self.store.get('object', self.oid) + res = self.store.get(self.oid) self.assertEqual(res, self.obj) def test_get_object_not_existing(self): oid = 'https://test/object/does_not_exist' with self.assertRaises(exceptions.DoesNotExist): - self.store.get('object', oid) - - def test_get_object_wrong_type(self): - with self.assertRaises(exceptions.UnknownObjectType): - self.store.get('no_such_type', self.oid) + self.store.get(oid) |