Пример #1
0
 def test_find_all_returns_empty(self):
     rows = Store.find_all(store_id="")
     self.assertTrue(list, type(rows))
     self.assertEqual(0, len(rows))
Пример #2
0
 def test_to_dict(self):
     row = Store.find_all()[0]
     data = row.to_dict()
     self.assertTrue(dict, type(row))
Пример #3
0
 def test_find_all(self):
     rows = Store.find_all()
     self.assertTrue(list, type(rows))
     self.assertEqual(5, len(rows))