def is_expected(item):
    with open(item) as f:
        expect(f).to_be_a_file()
        expect(item).to_be_a_file()
        try:
            expect(item).not_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_expected