Skip to content

Commit

Permalink
test Storage.NotImplemented
Browse files Browse the repository at this point in the history
  • Loading branch information
kneufeld committed Feb 25, 2019
1 parent 830127f commit cf59c0b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions alkali/tests/test_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ def test_1(self):
# self.assertTrue( verifyClass(IStorage, storage) )
# self.assertTrue( verifyObject(IStorage, storage(None) ) )

def test_notimplemented(self):
with self.assertRaises(NotImplementedError):
Storage().read(None)

with self.assertRaises(NotImplementedError):
Storage().write(None, None)

def test_2(self):
"write should handle empty dicts vs None"
tfile = tempfile.NamedTemporaryFile()
Expand Down

0 comments on commit cf59c0b

Please sign in to comment.