def test_touch_on_existing_file():

    before_time = time.ctime(os.path.getmtime(TEST_FILE))

    fs.touch(TEST_FILE)
    after_time = time.ctime(os.path.getmtime(TEST_FILE))

    assert after_time >= before_time
dataset/ETHPy150Open chaosmail/python-fs/fs/tests/test_touch.py/test_touch_on_existing_file/original