def resource_url(cls): return expand( Consumer(client=cls.test_client).templates['self'], { 'bitbucket_url': cls.test_client.get_bitbucket_url(), 'username': cls.test_client.get_username(), 'consumer_id': cls.consumer_id })
def setup_class(cls): cls.url = expand( Consumer(client=cls.test_client).templates['create'], { 'bitbucket_url': cls.test_client.get_bitbucket_url(), 'username': cls.test_client.get_username(), })
def example_object(cls): return Consumer(json.loads(cls.resource_data()), client=cls.test_client)