We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 872b205 commit 2b588a2Copy full SHA for 2b588a2
yoti_python_sdk/tests/test_document_details.py
@@ -124,10 +124,9 @@ def test_invalid_date():
124
assert str(exc.value) == "Invalid value for DocumentDetails"
125
126
127
-def test_should_parse_with_double_space():
128
- DATA = "AADHAAR IND ****1234"
+def test_should_fail_with_double_space():
+ DATA = " IND ****1234"
129
130
- document = DocumentDetails(DATA)
131
-
132
- assert document.document_type == "AADHAAR"
133
- assert document.document_number == "****1234"
+ with pytest.raises(ValueError) as exc:
+ DocumentDetails(DATA)
+ assert str(exc.value) == "Invalid value for DocumentDetails"
0 commit comments