def test_associate_tag_is_written_to_url(self): tag = 'ABC12345' api = API(self.ACCESS_KEY, self.SECRET_KEY, 'de', associate_tag=tag) url = api._build_url(Operation='ItemSearch', SearchIndex='Books') qs = parse_qs(urlparse(url)[4]) assert qs['AssociateTag'][0] == tag
def _build_url(self, **qargs): qargs['Style'] = self.STYLE_SHEET return API._build_url(self, **qargs)