Skip to content

Commit

Permalink
Add a simple test to make sure s3.Object works
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgtaylor committed Feb 10, 2015
1 parent b9e8ae9 commit e2d3706
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/integration/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,10 @@ def test_s3_resource_waiter(self):
obj.wait_until_exists()

# List objects and make sure ours is present
self.assertIn('test.txt', [o.key for o in bucket.objects.all()])
self.assertIn('test.txt', [o.key for o in bucket.objects.all()])

def test_can_create_object_directly(self):
obj = self.s3.Object(self.bucket_name, 'test.txt')

self.assertEqual(obj.bucket_name, self.bucket_name)
self.assertEqual(obj.key, 'test.txt')

0 comments on commit e2d3706

Please sign in to comment.