def test_email_validation_with_none():
    schema = Schema({"email": Email()})
    try:
        schema({"email": None})
    except MultipleInvalid as e:
        assert_equal(str(e),
                     "expected an Email for dictionary value @ data['email']")
    else:
        assert False, "Did not raise Invalid for None url"
Load the named resource from the given file.
dataset/ETHPy150Open alecthomas/voluptuous/voluptuous/tests/tests.py/test_email_validation_with_none--crossover with--dataset/ETHPy150Open cloudmatrix/esky/esky/bdist_esky/pypy_winres.py/load_resource