Revision 54b7d9b0 snf-pithos-app/pithos/api/test/objects.py
b/snf-pithos-app/pithos/api/test/objects.py | ||
---|---|---|
608 | 608 |
headers['HTTP_CONTENT_DISPOSITION'] = ('attachment; filename="%s"' % |
609 | 609 |
oname) |
610 | 610 |
url = join_urls(self.pithos_path, self.user, cname, oname) |
611 |
r = self.put(url, data=data, content_type='㌀', **headers) |
|
612 |
self.assertEqual(r.status_code, 400) |
|
613 |
|
|
611 | 614 |
r = self.put(url, data=data, content_type='application/pdf', **headers) |
612 | 615 |
self.assertEqual(r.status_code, 201) |
613 | 616 |
self.assertTrue('ETag' in r) |
Also available in: Unified diff