def test_book_url(self): book_url = "https://google.com" t = Trip(book_url=book_url) self.assertEqual(t.book_url, book_url)
def test_price(self): price = 100 t = Trip(price=price) self.assertEqual(t.price, price)
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)
def test_to_location(self): to_location = "SFO" t = Trip(to_location=to_location) self.assertEqual(t.to_location, to_location)
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)
def test_from_location(self): from_location = "San Francisco" t = Trip(from_location=from_location) self.assertEqual(t.from_location, from_location)