Update tests.
This commit is contained in:
parent
1415a93596
commit
c2e444a210
@ -2687,39 +2687,16 @@ def test_list_user_tags():
|
|||||||
{"Key": "like-a", "Value": "glove"},
|
{"Key": "like-a", "Value": "glove"},
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
response = conn.list_user_tags(UserName="kenny-bania")
|
||||||
|
response["Tags"].should.equal([])
|
||||||
|
response["IsTruncated"].should_not.be.ok
|
||||||
|
|
||||||
assert conn.list_user_tags(UserName="kenny-bania") == {
|
response = conn.list_user_tags(UserName="jackie-chiles")
|
||||||
"Tags": [],
|
response["Tags"].should.equal([{"Key": "Sue-Allen", "Value": "Oh-Henry"}])
|
||||||
"IsTruncated": False,
|
response["IsTruncated"].should_not.be.ok
|
||||||
"ResponseMetadata": {
|
|
||||||
"RequestId": "7a62c49f-347e-4fc4-9331-6e8eEXAMPLE",
|
|
||||||
"HTTPStatusCode": 200,
|
|
||||||
"HTTPHeaders": {"server": "amazon.com"},
|
|
||||||
"RetryAttempts": 0,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
assert conn.list_user_tags(UserName="jackie-chiles") == {
|
response = conn.list_user_tags(UserName="cosmo")
|
||||||
"Tags": [{"Key": "Sue-Allen", "Value": "Oh-Henry"}],
|
response["Tags"].should.equal(
|
||||||
"IsTruncated": False,
|
[{"Key": "Stan", "Value": "The Caddy"}, {"Key": "like-a", "Value": "glove"}]
|
||||||
"ResponseMetadata": {
|
)
|
||||||
"RequestId": "7a62c49f-347e-4fc4-9331-6e8eEXAMPLE",
|
response["IsTruncated"].should_not.be.ok
|
||||||
"HTTPStatusCode": 200,
|
|
||||||
"HTTPHeaders": {"server": "amazon.com"},
|
|
||||||
"RetryAttempts": 0,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
assert conn.list_user_tags(UserName="cosmo") == {
|
|
||||||
"Tags": [
|
|
||||||
{"Key": "Stan", "Value": "The Caddy"},
|
|
||||||
{"Key": "like-a", "Value": "glove"},
|
|
||||||
],
|
|
||||||
"IsTruncated": False,
|
|
||||||
"ResponseMetadata": {
|
|
||||||
"RequestId": "7a62c49f-347e-4fc4-9331-6e8eEXAMPLE",
|
|
||||||
"HTTPStatusCode": 200,
|
|
||||||
"HTTPHeaders": {"server": "amazon.com"},
|
|
||||||
"RetryAttempts": 0,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user