Use escape sequence to express non-ASCII character

This commit is contained in:
Alexander Campbell 2019-10-18 10:13:22 +11:00
commit 6120a60263
3 changed files with 12 additions and 11 deletions

View file

@ -43,7 +43,7 @@ def test_get_secret_that_does_not_exist():
result = conn.get_secret_value(SecretId='i-dont-exist')
assert_equal(
u"Secrets Manager cant find the specified secret.",
u"Secrets Manager can\u2019t find the specified secret.",
cm.exception.response['Error']['Message']
)
@ -58,10 +58,11 @@ def test_get_secret_that_does_not_match():
result = conn.get_secret_value(SecretId='i-dont-match')
assert_equal(
u"Secrets Manager cant find the specified secret.",
u"Secrets Manager can\u2019t find the specified secret.",
cm.exception.response['Error']['Message']
)
@mock_secretsmanager
def test_get_secret_value_that_is_marked_deleted():
conn = boto3.client('secretsmanager', region_name='us-west-2')
@ -85,7 +86,7 @@ def test_get_secret_that_has_no_value():
result = conn.get_secret_value(SecretId='java-util-test-password')
assert_equal(
u"Secrets Manager cant find the specified secret value for staging label: AWSCURRENT",
u"Secrets Manager can\u2019t find the specified secret value for staging label: AWSCURRENT",
cm.exception.response['Error']['Message']
)