'Test that we properly create a bucket in AWS'

def test_create_bucket(self):

    self.site.deployment_engine.bucket_name = 'new'
    bucket = self.site.deployment_engine.create_bucket()
    self.assertEqual('new', bucket.name)
    self.assertEqual(2, len(self.connection_factory.requests))
    (new, configure) = self.connection_factory.requests
    self.assertEqual('/new/', new.path)
    self.assertEqual('PUT', new.method)
    self.assertEqual('/new/?website', configure.url)
    self.assertEqual('PUT', configure.method)
    for req in (new, configure):
        self.assertEqual('s3.amazonaws.com', req.connection.host)
