'If the most relevant error is an anyOf, then we traverse its context
and select the otherwise *least* relevant error, since in this case
that means the most specific, deep, error inside the instance.
I.e. since only one of the schemas must match, we look for the most
relevant one.'

def test_if_the_most_relevant_error_is_anyOf_it_is_traversed(self):

    validator = Draft4Validator({'properties': {'foo': {'anyOf': [{'type': 'string'}, {'properties': {'bar': {'type': 'array'}}}]}}})
    best = self.best_match(validator.iter_errors({'foo': {'bar': 12}}))
    self.assertEqual(best.validator_value, 'array')
