def test_search_airport(self): hotels = Hotels(self.api_key) location = "BKK" currency = "USD" max_rate = 100 resp = hotels.search_airport( check_in=self.check_in, check_out=self.check_out, location=location, currency=currency, max_rate=max_rate ) self.assertTrue(len(resp) > 0)
def test_search_property_code(self): hotels = Hotels(self.api_key) property_code = 'RTNCEPUL' currency = 'USD' max_rate = 100 resp = hotels.search_property_code(check_in=self.check_in, check_out=self.check_out, property_code=property_code, currency=currency, max_rate=max_rate) self.assertTrue(len(resp) > 0)
def test_search_airport(self): hotels = Hotels(self.api_key) location = 'BKK' currency = 'USD' max_rate = 100 resp = hotels.search_airport(check_in=self.check_in, check_out=self.check_out, location=location, currency=currency, max_rate=max_rate) self.assertTrue(len(resp) > 0)
def test_search_property_code(self): hotels = Hotels(self.api_key) property_code = 'RTNCEPUL' currency = 'USD' max_rate = 100 resp = hotels.search_property_code( check_in=self.check_in, check_out=self.check_out, property_code=property_code, currency=currency, max_rate=max_rate) self.assertTrue(len(resp) > 0)
def test_search_circle(self): hotels = Hotels(self.api_key) latitude = 16.44671 longitude = 102.833 currency = 'USD' max_rate = 100 resp = hotels.search_circle(check_in=self.check_in, check_out=self.check_out, latitude=latitude, longitude=longitude, currency=currency, max_rate=max_rate, radius=300) self.assertTrue(len(resp) > 0)
def test_search_circle(self): hotels = Hotels(self.api_key) latitude = 16.44671 longitude = 102.833 currency = 'USD' max_rate = 100 resp = hotels.search_circle( check_in=self.check_in, check_out=self.check_out, latitude=latitude, longitude=longitude, currency=currency, max_rate=max_rate, radius=300) self.assertTrue(len(resp) > 0)