def test_get_ungrouped(self): """Storage info result must be not empty if storage was opened.""" m = Model() m.open_storage('./test.sme.sqlite') data, headers = m.group_info('0') self.assertNotEqual(data, None) self.assertNotEqual(headers, None)
def test_group_info_if_group_does_not_exist(self): m = Model() m.open_storage('./test.sme.sqlite') data, headers = m.group_info('1000') self.assertEqual(data, None) self.assertEqual(headers, None)
def test_group_info_by_existing_not_zero_id(self): m = Model() m.open_storage('./test.sme.sqlite') data, headers = m.group_info(1) self.assertNotEqual(data, None) self.assertNotEqual(headers, None)