<s> import os <EOL> import os . path <EOL> import time <EOL> import pytest <EOL> import fs <EOL> from . setup import * <EOL> def test_touch_on_existing_file ( ) : <EOL> before_time = time . ctime ( os . path . getmtime ( TEST_FILE ) ) <EOL> fs . touch ( TEST_FILE ) <EOL> after_time = time . ctime ( os . path . getmtime ( TEST_FILE ) ) <EOL> assert after_time >= before_time <EOL> def test_touch_on_new_file ( ) : <EOL> new_file = os . path . join ( TEST_DIR , "<STR_LIT>" ) <EOL> if ( os . path . exists ( new_file ) ) : <EOL> raise ValueError ( "<STR_LIT>" ) <EOL> fs . touch ( new_file ) <EOL> assert os . path . exists ( new_file ) is True <EOL> @ pytest . mark . skipif ( os . name == "<STR_LIT>" , reason = "<STR_LIT>" ) <EOL> def test_touch_on_directory ( ) : <EOL> before_time = time . ctime ( os . path . getmtime ( TEST_DIR ) ) <EOL> fs . touch ( TEST_DIR ) <EOL> after_time = time . ctime ( os . path . getmtime ( TEST_DIR ) ) <EOL> assert after_time >= before_time </s>
