This commit is contained in:
Itamar Turner-Trauring 2022-03-09 12:41:10 -05:00
parent ac271cfb3d
commit edb9eda53b

View File

@ -489,7 +489,10 @@ class ImmutableHTTPAPITests(SyncTestCase):
self.assertEqual(downloaded, expected_data[offset : offset + length]) self.assertEqual(downloaded, expected_data[offset : offset + length])
def test_write_with_wrong_upload_key(self): def test_write_with_wrong_upload_key(self):
"""A write with the wrong upload key fails.""" """
A write with an upload key that is different than the original upload
key will fail.
"""
(upload_secret, _, storage_index, _) = self.create_upload({1}, 100) (upload_secret, _, storage_index, _) = self.create_upload({1}, 100)
with assert_fails_with_http_code(self, http.UNAUTHORIZED): with assert_fails_with_http_code(self, http.UNAUTHORIZED):
result_of( result_of(