mirror of
https://github.com/dcarrillo/digaws.git
synced 2026-01-02 08:07:07 +00:00
Fix exception tests
This commit is contained in:
@@ -83,4 +83,4 @@ def test_get_aws_ip_ranges_invalid_status(mocker, fs, create_cache_dir) -> None:
|
||||
with pytest.raises(digaws.UnexpectedRequestException) as e:
|
||||
digaws.get_aws_ip_ranges()
|
||||
|
||||
assert e.match("^Unexpected response from")
|
||||
assert str(e.value).startswith("Unexpected response from")
|
||||
|
||||
Reference in New Issue
Block a user