Skip to content

Commit

Permalink
Add a small integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgtaylor committed Feb 10, 2015
1 parent d77bdc6 commit f4a2e72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/integration/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ def test_s3(self):
# Lazy-loaded attribute
self.assertEqual(12, obj.content_length)

# Load a similar attribute from the collection response
self.assertEqual(12, list(bucket.objects.all())[0].size)

# Perform a resource action with a low-level response
self.assertEqual(b'hello, world',
obj.get()['Body'].read())
Expand Down

0 comments on commit f4a2e72

Please sign in to comment.