示例#1
0
    def test_book_url(self):
        book_url = "https://google.com"
        t = Trip(book_url=book_url)

        self.assertEqual(t.book_url, book_url)
示例#2
0
    def test_price(self):
        price = 100
        t = Trip(price=price)

        self.assertEqual(t.price, price)
示例#3
0
 def test_to_location_code(self):
     to_location_code = "SFO"
     t = Trip(to_location_code=to_location_code)
     self.assertEqual(t.to_location_code, to_location_code)
示例#4
0
 def test_to_location(self):
     to_location = "SFO"
     t = Trip(to_location=to_location)
     self.assertEqual(t.to_location, to_location)
示例#5
0
 def test_from_location_code(self):
     from_location_code = "SFO"
     t = Trip(from_location_code=from_location_code)
     self.assertEqual(t.from_location_code, from_location_code)
示例#6
0
 def test_from_location(self):
     from_location = "San Francisco"
     t = Trip(from_location=from_location)
     self.assertEqual(t.from_location, from_location)