Skip to content

Commit

Permalink
test_wrong_certificate could also raise AssertionError
Browse files Browse the repository at this point in the history
  • Loading branch information
jborbely committed Sep 20, 2023
1 parent 5ec2f46 commit b650cfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def test_wrong_certificate():
assert cryptography.generate_certificate(path=cert, key_path=key) == cert
kwargs = manager.kwargs.copy()
kwargs['cert_file'] = cert
with pytest.raises(ConnectionError) as e:
with pytest.raises(ConnectionError, AssertionError) as e:
connect(**kwargs)
msg = str(e.value)
assert 'Perhaps the Network Manager is using a new certificate' in msg
Expand Down

0 comments on commit b650cfb

Please sign in to comment.