def test_ordered_dict_value_validator():
 schema = vol.Schema(cv.ordered_dict(cv.string))
 with pytest.raises(vol.Invalid):
  schema({'hello': None})
 schema({'hello': 'world'})
 schema = vol.Schema(cv.ordered_dict(int))
 with pytest.raises(vol.Invalid):
  schema({'hello': 'world'})
 schema({'hello': 5})

def test_ordered_dict_value_validator ( ) : schema = vol . Schema ( cv . ordered_dict ( cv . string ) ) with pytest . raises ( vol . Invalid ) : schema ( { 'hello' : None } ) schema ( { 'hello' : 'world' } ) schema = vol . Schema ( cv . ordered_dict ( int ) ) with pytest . raises ( vol . Invalid ) : schema ( { 'hello' : 'world' } ) schema ( { 'hello' : 5 } )
test ordered_dict validator .