def assert_errors(errors, expected_errors):
    """Test not complete error messages but only substrings."""
    assert len(errors) == len(expected_errors)
    for error, expected in zip(errors, expected_errors):
        assert expected in str(error)
dataset/ETHPy150Open FichteFoll/CSScheme/tinycsscheme/tinycss/tests/__init__.py/assert_errors/original