예제 #1
0
 def test_bikes_few(self):
     expected = "At Rodin: 1."
     not_expected = "2"
     response = handle_bikes()
     print(response)
     self.assertFalse(not_expected in response)
     self.assertTrue(expected in response)
     self.assertLess(len(response), 161)
예제 #2
0
 def test_bikes_many(self):
     expected = "At Hill: 3, 4, 5, 6."
     response = handle_bikes()
     print(response)
     self.assertTrue(expected in response)
     self.assertLess(len(response), 161)
예제 #3
0
파일: tests.py 프로젝트: razzius/PennCycle
 def test_bikes(self):
     expected = "At Rodin: 1, 2."
     response = handle_bikes()
     print(response)
     self.assertTrue(expected in response)
     self.assertLess(len(response), 161)