Fixed test.
This commit is contained in:
@@ -7,7 +7,7 @@ import xmldsig as ds
|
||||
from saml2 import saml
|
||||
from saml2 import samlp
|
||||
from saml2 import md
|
||||
from saml2.validate import valid_duration
|
||||
from saml2.validate import valid_duration, MustValueError
|
||||
from saml2.validate import valid_unsigned_short
|
||||
from saml2.validate import valid_non_negative_integer
|
||||
from saml2.validate import valid_string
|
||||
@@ -94,7 +94,7 @@ def test_valid_instance():
|
||||
response.status = samlp.Status()
|
||||
response.assertion.append(saml.Assertion())
|
||||
|
||||
raises( NotValid, 'valid_instance(response)')
|
||||
raises( MustValueError, 'valid_instance(response)')
|
||||
|
||||
def test_valid_anytype():
|
||||
assert valid_anytype("130.239.16.3")
|
||||
|
||||
Reference in New Issue
Block a user