def setup_basic_get_test(self, user, with_local_site, local_site_name, populate_items): if populate_items: application = self.create_oauth_application( user=user, with_local_site=with_local_site, ) items = [ self.create_oauth_token(user=user, application=application), ] else: items = [] return (get_oauth_token_list_url(local_site_name=local_site_name), oauth_token_list_mimetype, items)
def setup_basic_get_test(self, user, with_local_site, local_site_name, populate_items): if populate_items: application = self.create_oauth_application( user=user, with_local_site=with_local_site, ) items = [ self.create_oauth_token(user=user, application=application), ] else: items = [] return (get_oauth_token_list_url(local_site_name=local_site_name), oauth_token_list_mimetype, items)
def setup_http_not_allowed_list_test(self, user): return get_oauth_token_list_url()
def setup_http_not_allowed_list_test(self, user): return get_oauth_token_list_url()