From 28c4b432c41dab37d11236982a44c576ffb7775e Mon Sep 17 00:00:00 2001 From: Stephon Striplin Date: Tue, 26 Jul 2011 20:07:19 -0700 Subject: [PATCH] add a Content-Type header test --- s3tests/functional/test_headers.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/s3tests/functional/test_headers.py b/s3tests/functional/test_headers.py index dfd1983..90c0268 100644 --- a/s3tests/functional/test_headers.py +++ b/s3tests/functional/test_headers.py @@ -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': ''})