()
| 20 | |
| 21 | |
| 22 | def test_isinstance_strict(): |
| 23 | v = SchemaValidator(cs.int_schema(strict=True)) |
| 24 | assert v.validate_python(123) == 123 |
| 25 | assert v.isinstance_python(123) is True |
| 26 | |
| 27 | with pytest.raises(ValidationError, match='Input should be a valid integer'): |
| 28 | v.validate_python('123') |
| 29 | |
| 30 | assert v.isinstance_python('123') is False |
| 31 | |
| 32 | |
| 33 | def test_isinstance_forbid_extra_fn_override(): |
nothing calls this directly
no test coverage detected