def setUp(self):
     self.mock_s3.start()
     self.location = "eu-west-1"
     self.bucket_name = 'test_bucket_01'
     self.key_name = 'stats_com/fake_fake/test.json'
     self.key_contents = 'This is test data.'
     s3 = boto3.resource('s3', region_name=self.location)
     bucket = s3.create_bucket(Bucket=self.bucket_name)
     s3.Object(self.bucket_name, self.key_name).put(Body=self.key_contents)
     self.conn = aws.Connection().s3_connection()
     self.s3_manager = aws.S3Manager(self.conn)
 def setUp(self):
     """Setup"""
     test_name = self.shortDescription()
     if test_name != "Test routine there_is_a_aws_connection":
         self.conn = aws.Connection()
 def test_there_is_a_aws_connection(self):
     """Test routine there_is_a_aws_connection"""
     conn = aws.Connection()
     self.assertIsInstance(
         conn, aws.Connection,
         'The object is not an instance of class Connection')