add a Content-Type header test

This commit is contained in:
Stephon Striplin 2011-07-26 20:07:19 -07:00
parent ab7b4eb03d
commit 28c4b432c4

View file

@ -292,6 +292,12 @@ def test_object_create_bad_contenttype_unreadable():
assert e.error_code in ('AccessDenied', 'SignatureDoesNotMatch')
@nose.with_setup(teardown=_clear_custom_headers)
def test_object_create_bad_contenttype_none():
key = _setup_bad_object(remove=('Content-Type',))
key.set_contents_from_string('bar')
@nose.with_setup(teardown=_clear_custom_headers)
def test_object_create_bad_ua_invalid():
key = _setup_bad_object({'User-Agent': ''})