Use escape sequence to express non-ASCII character
This commit is contained in:
parent
4eb921480e
commit
6120a60263
3 changed files with 12 additions and 11 deletions
|
|
@ -50,7 +50,7 @@ def test_get_secret_that_does_not_exist():
|
|||
"X-Amz-Target": "secretsmanager.GetSecretValue"},
|
||||
)
|
||||
json_data = json.loads(get_secret.data.decode("utf-8"))
|
||||
assert json_data['message'] == u"Secrets Manager can’t find the specified secret."
|
||||
assert json_data['message'] == u"Secrets Manager can\u2019t find the specified secret."
|
||||
assert json_data['__type'] == 'ResourceNotFoundException'
|
||||
|
||||
@mock_secretsmanager
|
||||
|
|
@ -71,7 +71,7 @@ def test_get_secret_that_does_not_match():
|
|||
"X-Amz-Target": "secretsmanager.GetSecretValue"},
|
||||
)
|
||||
json_data = json.loads(get_secret.data.decode("utf-8"))
|
||||
assert json_data['message'] == u"Secrets Manager can’t find the specified secret."
|
||||
assert json_data['message'] == u"Secrets Manager can\u2019t find the specified secret."
|
||||
assert json_data['__type'] == 'ResourceNotFoundException'
|
||||
|
||||
@mock_secretsmanager
|
||||
|
|
@ -91,7 +91,7 @@ def test_get_secret_that_has_no_value():
|
|||
)
|
||||
|
||||
json_data = json.loads(get_secret.data.decode("utf-8"))
|
||||
assert json_data['message'] == u"Secrets Manager can’t find the specified secret value for staging label: AWSCURRENT"
|
||||
assert json_data['message'] == u"Secrets Manager can\u2019t find the specified secret value for staging label: AWSCURRENT"
|
||||
assert json_data['__type'] == 'ResourceNotFoundException'
|
||||
|
||||
@mock_secretsmanager
|
||||
|
|
@ -179,7 +179,7 @@ def test_describe_secret_that_does_not_exist():
|
|||
)
|
||||
|
||||
json_data = json.loads(describe_secret.data.decode("utf-8"))
|
||||
assert json_data['message'] == u"Secrets Manager can’t find the specified secret."
|
||||
assert json_data['message'] == u"Secrets Manager can\u2019t find the specified secret."
|
||||
assert json_data['__type'] == 'ResourceNotFoundException'
|
||||
|
||||
@mock_secretsmanager
|
||||
|
|
@ -203,7 +203,7 @@ def test_describe_secret_that_does_not_match():
|
|||
)
|
||||
|
||||
json_data = json.loads(describe_secret.data.decode("utf-8"))
|
||||
assert json_data['message'] == u"Secrets Manager can’t find the specified secret."
|
||||
assert json_data['message'] == u"Secrets Manager can\u2019t find the specified secret."
|
||||
assert json_data['__type'] == 'ResourceNotFoundException'
|
||||
|
||||
@mock_secretsmanager
|
||||
|
|
@ -304,7 +304,7 @@ def test_rotate_secret_that_does_not_exist():
|
|||
)
|
||||
|
||||
json_data = json.loads(rotate_secret.data.decode("utf-8"))
|
||||
assert json_data['message'] == u"Secrets Manager can’t find the specified secret."
|
||||
assert json_data['message'] == u"Secrets Manager can\u2019t find the specified secret."
|
||||
assert json_data['__type'] == 'ResourceNotFoundException'
|
||||
|
||||
@mock_secretsmanager
|
||||
|
|
@ -328,7 +328,7 @@ def test_rotate_secret_that_does_not_match():
|
|||
)
|
||||
|
||||
json_data = json.loads(rotate_secret.data.decode("utf-8"))
|
||||
assert json_data['message'] == u"Secrets Manager can’t find the specified secret."
|
||||
assert json_data['message'] == u"Secrets Manager can\u2019t find the specified secret."
|
||||
assert json_data['__type'] == 'ResourceNotFoundException'
|
||||
|
||||
@mock_secretsmanager
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue