'Now, if the error is allOf, we traverse but select the *most* relevant
error from the context, because all schemas here must match anyways.'

def test_if_the_most_relevant_error_is_allOf_it_is_traversed(self):

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