Skip to content

Commit

Permalink
Update tests/functional/test_s3.py
Browse files Browse the repository at this point in the history
Co-authored-by: Nate Prewitt <nate.prewitt@gmail.com>
  • Loading branch information
alexgromero and nateprewitt authored Aug 23, 2024
1 parent d1d67d5 commit 5e80ad8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/functional/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -1351,13 +1351,11 @@ def test_valid_expires_value_in_response(self):
with ClientHTTPStubber(s3) as http_stubber:
http_stubber.add_response(headers=mock_headers)
response = s3.get_object(Bucket='mybucket', Key='mykey')
self.assertIn('Expires', response)
self.assertEqual(
response['Expires'],
response.get('Expires'),
datetime.datetime(1970, 1, 1, tzinfo=tzutc()),
)
self.assertIn('ExpiresString', response)
self.assertEqual(response['ExpiresString'], expires_value)
self.assertEqual(response.get('ExpiresString'), expires_value)
self.assertEqual(len(http_stubber.requests), 1)

def test_invalid_expires_value_in_response(self):
Expand Down

0 comments on commit 5e80ad8

Please sign in to comment.