Esempio n. 1
0
 def testDoesNotAcceptNegativeNumbers(self):
     output = routes.read_entry("bike", -2)
     self.assertIn("3", output)
Esempio n. 2
0
 def testGetSecondMostRecent(self):
     output = routes.read_entry("bike", 2)
     self.assertIn("1", output)
Esempio n. 3
0
 def testSortsByCreatedAt(self):
     output = routes.read_entry("bike")
     self.assertIn("3", output)
Esempio n. 4
0
 def testReturnsBlankIfNameNotExist(self):
     output = routes.read_entry("hike")
     self.assertEqual("", output)
Esempio n. 5
0
 def testFiltersOnName(self):
     output = routes.read_entry("jog")
     self.assertIn("jog", output)
Esempio n. 6
0
 def testReadsName(self):
     output = routes.read_entry("bike")
     self.assertIn("bike", output)