def is_not_expected(item):
    expect(item).Not.to_be_a_file()
    expect(item).not_to_be_a_file()

    try:
        expect(item).to_be_a_file()
    except __HOLE__:
        return

    assert False, 'Should not have gotten this far'

#-----------------------------------------------------------------------------
dataset/ETHPy150Open heynemann/preggy/tests/types/test_file.py/is_not_expected