Revision 23808592 snf-django-lib/snf_django/utils/testing.py
b/snf-django-lib/snf_django/utils/testing.py | ||
---|---|---|
221 | 221 |
response = self.client.get(url, *args, **kwargs) |
222 | 222 |
return response |
223 | 223 |
|
224 |
def head(self, url, user='user', *args, **kwargs): |
|
225 |
with astakos_user(user): |
|
226 |
with mocked_quotaholder(): |
|
227 |
response = self.client.head(url, *args, **kwargs) |
|
228 |
return response |
|
229 |
|
|
224 | 230 |
def delete(self, url, user='user'): |
225 | 231 |
with astakos_user(user): |
226 | 232 |
with mocked_quotaholder() as m: |
Also available in: Unified diff