]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
tests must have unique names, otherwise they override existing tests. 58/head
authorRobin H. Johnson <robbat2@gentoo.org>
Mon, 15 Jun 2015 04:31:30 +0000 (21:31 -0700)
committerRobin H. Johnson <robbat2@gentoo.org>
Mon, 15 Jun 2015 05:10:35 +0000 (22:10 -0700)
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
s3tests/functional/test_headers.py
s3tests/fuzz/test/test_fuzzer.py

index 6d404d27a58a9933d05a2f6f5b5b425d30346488..8fd42d33ebca53cc851b4d49d45c3fa12c61a901 100644 (file)
@@ -167,7 +167,7 @@ def _setup_bad_object(headers=None, remove=None):
 @attr(operation='create w/invalid MD5')
 @attr(assertion='fails 400')
 @nose.with_setup(teardown=_clear_custom_headers)
-def test_object_create_bad_md5_invalid():
+def test_object_create_bad_md5_invalid_garbage():
     key = _setup_bad_object({'Content-MD5':'AWS HAHAHA'})
 
     e = assert_raises(boto.exception.S3ResponseError, key.set_contents_from_string, 'bar')
@@ -181,7 +181,7 @@ def test_object_create_bad_md5_invalid():
 @attr(operation='create w/invalid MD5')
 @attr(assertion='fails 400')
 @nose.with_setup(teardown=_clear_custom_headers)
-def test_object_create_bad_md5_invalid():
+def test_object_create_bad_md5_invalid_short():
     key = _setup_bad_object({'Content-MD5':'YWJyYWNhZGFicmE='})
 
     e = assert_raises(boto.exception.S3ResponseError, key.set_contents_from_string, 'bar')
index f54e954599775c81e2ae2a721c262ea3b5b12677..57590195483ce0400c1d10de4a71ce644c1aa823 100644 (file)
@@ -178,7 +178,7 @@ def test_expand_random_printable_no_whitespace():
         assert_true(reduce(lambda x, y: x and y, [x not in string.whitespace and x in string.printable for x in got]))
 
 
-def test_expand_random_binary():
+def test_expand_random_binary_no_whitespace():
     prng = random.Random(1)
     for _ in xrange(1000):
         got = expand({}, '{random 500 binary_no_whitespace}', prng)