Exemple #1
0
 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
         })
Exemple #2
0
 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(),
         })
Exemple #3
0
 def example_object(cls):
     return Consumer(json.loads(cls.resource_data()),
                     client=cls.test_client)