diff options
author | Julian Berman <Julian@GrayVines.com> | 2013-05-21 09:33:45 -0400 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2013-05-21 09:33:45 -0400 |
commit | d6f99968a8532bf4518562309383360f3b170889 (patch) | |
tree | 248a199923577b3fbd54ed00fcc56fedefeda307 /jsonschema/tests | |
parent | aa7601131f647e7425c27d01f0d9213f7ed2328e (diff) | |
download | jsonschema-d6f99968a8532bf4518562309383360f3b170889.tar.gz |
Remove ValidatorMixin.
Diffstat (limited to 'jsonschema/tests')
-rw-r--r-- | jsonschema/tests/test_validators.py | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/jsonschema/tests/test_validators.py b/jsonschema/tests/test_validators.py index afa472d..ac88432 100644 --- a/jsonschema/tests/test_validators.py +++ b/jsonschema/tests/test_validators.py @@ -9,8 +9,7 @@ from jsonschema.compat import PY3 from jsonschema.tests.compat import mock, unittest from jsonschema.validators import ( RefResolutionError, UnknownType, ErrorTree, Draft3Validator, - Draft4Validator, RefResolver, ValidatorMixin, create, extend, - validator_for, validate, + Draft4Validator, RefResolver, create, extend, validator_for, validate, ) @@ -678,18 +677,6 @@ class TestValidate(unittest.TestCase): chk_schema.assert_called_once_with({}) -class TestValidatorMixin(unittest.TestCase): - def test_if_ref_is_present_then_the_schema_is_replaced(self): - class Validator(ValidatorMixin): - validate_ref = mock.Mock(return_value=[]) - validate_type = mock.Mock(return_value=[]) - - Validator({"$ref" : "foo", "type" : "quux"}).validate(1) - - self.assertTrue(Validator.validate_ref.called) - self.assertFalse(Validator.validate_type.called) - - class TestRefResolver(unittest.TestCase): base_uri = "" |