'Test that we retrieve the correct list of buckets from AWS'

def test_list_buckets(self):

    buckets = self.site.deployment_engine._get_buckets()
    bucket_names = [bucket.name for bucket in buckets]
    self.assertEqual(sorted(bucket_names), sorted(['website', 'other']))
    self.assertEqual(1, len(self.connection_factory.requests))
    req = self.connection_factory.requests[0]
    self.assertEqual('GET', req.method)
    self.assertEqual('/', req.path)
