def register(self, endpoint, json_=None): httpretty.register_uri( httpretty.POST, urljoin(self.telegram.url, endpoint), body=self.json_response, content_type='application/json' )
def register(self, json): httpretty.register_uri( httpretty.POST, urljoin(DEFAULT_URL, ENDPOINT), body=stdjson.dumps(json), content_type='application/json' )
def register(self, json): httpretty.register_uri(httpretty.POST, urljoin(DEFAULT_URL, ENDPOINT), body=stdjson.dumps(json), content_type='application/json')