def test_table_counts(self): self.assertEqual(Client.count() + Staff.count(), 100) self.assertEqual(Event.count(), 10)
def test_search_on_event_date(self): count = 0 for event in Event.scan(Event.start_time.between(parser.parse("Mar 1 00:00:00 PST 2018"), parser.parse("Mar 10 23:59:00 PST 2018"))): count += 1 self.assertEqual((Event.count()/2), count)