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