Revision 35030d55 snf-pithos-app/pithos/api/test/__init__.py
b/snf-pithos-app/pithos/api/test/__init__.py | ||
---|---|---|
49 | 49 |
from synnefo.lib import join_urls |
50 | 50 |
from synnefo.util import text |
51 | 51 |
|
52 |
from django.core.urlresolvers import reverse |
|
53 | 52 |
from django.test import TestCase |
54 | 53 |
from django.test.client import Client, MULTIPART_CONTENT, FakePayload |
55 | 54 |
from django.test.simple import DjangoTestSuiteRunner |
... | ... | |
236 | 235 |
|
237 | 236 |
# patch astakosclient.AstakosClient.api_oa2_auth |
238 | 237 |
mock_api_oa2_auth = self.create_patch( |
239 |
'astakosclient.AstakosClient.api_oa2_auth',
|
|
238 |
'astakosclient.AstakosClient.oa2_url',
|
|
240 | 239 |
new_callable=PropertyMock) |
241 |
mock_api_oa2_auth.return_value = reverse('oa2_authenticate') |
|
242 |
|
|
243 |
# patch astakosclient.AstakosClient.api_oa2_token |
|
244 |
mock_api_oa2_token = self.create_patch( |
|
245 |
'astakosclient.AstakosClient.api_oa2_token', |
|
246 |
new_callable=PropertyMock) |
|
247 |
mock_api_oa2_token.return_value = reverse('oa2_token') |
|
240 |
mock_api_oa2_auth.return_value = '/astakos/oa2/' |
|
248 | 241 |
|
249 | 242 |
def tearDown(self): |
250 | 243 |
#delete additionally created metadata |
Also available in: Unified diff