]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
add test_object_create_unreadable
authorStephon Striplin <stephon.striplin@dreamhost.com>
Mon, 25 Jul 2011 17:57:34 +0000 (10:57 -0700)
committerStephon Striplin <stephon.striplin@dreamhost.com>
Mon, 25 Jul 2011 18:25:39 +0000 (11:25 -0700)
s3tests/functional/test_s3.py

index 005f8be0541c08164a2751fb4cd3215292143ffd..bf6449bec7f3df2118074e7565634ed7407893e6 100644 (file)
@@ -125,6 +125,14 @@ def test_object_read_notexist():
     eq(e.error_code, 'NoSuchKey')
 
 
+# While the test itself passes, there's a SAX parser error during teardown. It
+# seems to be a boto bug.  It happens with both amazon and dho.
+def test_object_create_unreadable():
+    bucket = get_new_bucket()
+    key = bucket.new_key('\x07')
+    key.set_contents_from_string('bar')
+
+
 # This should test the basic lifecycle of the key
 def test_object_write_read_update_read_delete():
     bucket = get_new_bucket()