Finish porting from nose to pytest.
This commit is contained in:
parent
77dc60ea97
commit
ea489bce6c
72 changed files with 1289 additions and 1280 deletions
|
|
@ -199,9 +199,9 @@ def test_delete_group():
|
|||
@mock_iam
|
||||
def test_delete_unknown_group():
|
||||
conn = boto3.client("iam", region_name="us-east-1")
|
||||
with assert_raises(ClientError) as err:
|
||||
with pytest.raises(ClientError) as err:
|
||||
conn.delete_group(GroupName="unknown-group")
|
||||
err.exception.response["Error"]["Code"].should.equal("NoSuchEntity")
|
||||
err.exception.response["Error"]["Message"].should.equal(
|
||||
err.value.response["Error"]["Code"].should.equal("NoSuchEntity")
|
||||
err.value.response["Error"]["Message"].should.equal(
|
||||
"The group with name unknown-group cannot be found."
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue