'L{getValidator} returns an L{jsonschema} validator.
In particular, it has C{.validate} and C{.iter_items} methods.'

def test_basic(self):

    validator = getValidator({u'type': u'string'}, {})
    validator.validate('abc')
    self.assertEqual(len(list(validator.iter_errors({}))), 1)
    self.assertRaises(ValidationError, validator.validate, {})
