def test_storage_info_if_storage_not_opened(self): m = Model() try: m.storage_info() result = True except AttributeError: result = False finally: self.assertFalse(result)
def test_storage_info(self): m = Model() m.open_storage('./test.sme.sqlite') data, headers = m.storage_info() self.assertEqual(len(data) > 0, True) self.assertEqual(len(headers) > 0, True)