def test_has_good_error_message_when_no_resource(self):
    bad_resource_name = 'doesnotexist'
    err_regex = ('%s.*resource does not exist.' % bad_resource_name)
    with self.assertRaisesRegex(ResourceNotExistsError, err_regex):
        boto3.resource(bad_resource_name)
def test_has_good_error_message_when_no_resource(self):
    bad_resource_name = 'doesnotexist'
    err_regex = ('%s.*resource does not exist.' % bad_resource_name)
    with self.assertRaisesRegex(ResourceNotExistsError, err_regex):
        boto3.resource(bad_resource_name)