Revision 6c9df07c snf-pithos-app/pithos/api/test/objects.py
b/snf-pithos-app/pithos/api/test/objects.py | ||
---|---|---|
1882 | 1882 |
content = r.content |
1883 | 1883 |
self.assertEqual(content, d2 + d3[-1]) |
1884 | 1884 |
|
1885 |
def test_update_invalid_permissions(self): |
|
1886 |
url = join_urls(self.pithos_path, self.user, self.container, |
|
1887 |
self.object) |
|
1888 |
r = self.post(url, content_type='', HTTP_CONTENT_RANGE='bytes */*', |
|
1889 |
HTTP_X_OBJECT_SHARING='%s' % (257*'a')) |
|
1890 |
self.assertEqual(r.status_code, 400) |
|
1891 |
|
|
1892 |
r = self.post(url, content_type='', HTTP_CONTENT_RANGE='bytes */*', |
|
1893 |
HTTP_X_OBJECT_SHARING='read=%s' % (257*'a')) |
|
1894 |
self.assertEqual(r.status_code, 400) |
|
1895 |
|
|
1896 |
r = self.post(url, content_type='', HTTP_CONTENT_RANGE='bytes */*', |
|
1897 |
HTTP_X_OBJECT_SHARING='write=%s' % (257*'a')) |
|
1898 |
self.assertEqual(r.status_code, 400) |
|
1885 | 1899 |
|
1886 | 1900 |
class ObjectDelete(PithosAPITest): |
1887 | 1901 |
def setUp(self): |
Also available in: Unified diff