fix test to maintain compatibility with python3.5

This commit is contained in:
Gonçalo Valério 2019-10-15 19:17:14 +01:00
parent be22cf5250
commit 1bfec1c66a
1 changed files with 4 additions and 1 deletions

View File

@ -50,7 +50,10 @@ def test_invalid_address():
with pytest.raises(ValidationError) as error:
addr.full_clean()
assert f"{bad_addr} is not a valid address" in error.value.message_dict["address"]
assert (
"{} is not a valid address".format(bad_addr)
in error.value.message_dict["address"]
)
def test_wrong_network_address(settings):