def test_bucket_availability(self):
    bucket_name = 'test_bucket_lifecycle'
    returned_empty_lifecycle = s3_listener.get_lifecycle(bucket_name)
    self.assertRegexpMatches(returned_empty_lifecycle._content, 'The bucket does not exist')
    response = s3_listener.get_replication(bucket_name)
    self.assertRegexpMatches(response._content, 'The bucket does not exist')
    response = s3_listener.get_encryption(bucket_name)
    self.assertRegexpMatches(response._content, 'The bucket does not exist')
    response = s3_listener.get_object_lock(bucket_name)
    self.assertRegexpMatches(response._content, 'The bucket does not exist')
def test_bucket_availability(self):
    bucket_name = 'test_bucket_lifecycle'
    returned_empty_lifecycle = s3_listener.get_lifecycle(bucket_name)
    self.assertRegexpMatches(returned_empty_lifecycle._content, 'The bucket does not exist')
    response = s3_listener.get_replication(bucket_name)
    self.assertRegexpMatches(response._content, 'The bucket does not exist')
    response = s3_listener.get_encryption(bucket_name)
    self.assertRegexpMatches(response._content, 'The bucket does not exist')
    response = s3_listener.get_object_lock(bucket_name)
    self.assertRegexpMatches(response._content, 'The bucket does not exist')