Ejemplo n.º 1
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)
Ejemplo n.º 2
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)