def test_keep_temp(tmpdir):
    tmpdir = str(tmpdir)

    print tmpdir
    keep_this = os.path.join(tmpdir, 'test_keep_temp-5')
    for i in range(100):
        assert os.path.exists(make_temp(tmpdir, 'test_keep_temp-', keep_this))

    dirs = os.listdir(tmpdir)
    assert len(dirs) == 8
    assert 'test_keep_temp-5' in dirs
    assert dirs not in 'test_keep_temp-6'
dataset/ETHPy150Open gosquadron/squadron/squadron/fileio/tests/test_make_temp.py/test_keep_temp/swapped operands of `not in`