'Test lazy validators by making a recursive one.'

def _lazy(self):

    def recursive_validator():
        root = validator.factory(u'dict')
        root.accept(u'integer', key=u'int')
        root.accept(recursive_validator, key=u'recurse')
        return root
    test_config = {u'int': 1, u'recurse': {u'int': 2, u'recurse': {u'int': 3}}}
    assert recursive_validator().validate(test_config), u'Config    should    pass    validation'
    test_config[u'recurse'][u'badkey'] = 4
    assert (not recursive_validator().validate(test_config)), u'Config    should    not    be    valid'
