diff options
-rw-r--r-- | qvarn/objstore_tests.py | 6 | ||||
-rw-r--r-- | without-tests | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/qvarn/objstore_tests.py b/qvarn/objstore_tests.py index 7a55e76..63cf6f0 100644 --- a/qvarn/objstore_tests.py +++ b/qvarn/objstore_tests.py @@ -49,6 +49,12 @@ class ObjectStoreTests(unittest.TestCase): store.create_object(self.obj1, key='1st') self.assertEqual(self.get_all_objects(store), [self.obj1]) + def test_adds_object_with_binary_data(self): + store = self.create_store(key=str) + self.obj1['data'] = bytes(range(0, 256)) + store.create_object(self.obj1, key='1st') + self.assertEqual(self.get_all_objects(store), [self.obj1]) + def test_raises_error_for_surprising_keys(self): store = self.create_store(key=str) with self.assertRaises(qvarn.UnknownKey): diff --git a/without-tests b/without-tests index 03277d8..ec2f550 100644 --- a/without-tests +++ b/without-tests @@ -4,5 +4,5 @@ apifw/http.py apifw/bottleapp.py apifw/apixface.py slog/__init__.py -qvarn-backend.py +qvarnbackend.py qvarn/__init__.py |