Add unit test for database listing

This commit is contained in:
Bo Maryniuk 2016-06-30 13:45:21 +02:00
parent f7dc2b9c84
commit c744aa1caf

View File

@ -147,6 +147,11 @@ class InspectorFSDBTestCase(TestCase):
@patch("os.listdir", MagicMock(return_value=['test_db']))
def test_list_databases(self):
'''
Test list databases.
:return:
'''
csvdb = CsvDB('/foobar')
assert csvdb.list() == ['test_db']
Test storing object into the database.
def test_obj_serialization(self):