def test_file_manipulation(self): run_script(self, """ $ echo hello > afile $ cat afile hello $ rm afile """)
def test_external_command_on_path(self): testdata_dir = os.path.abspath(os.path.join( os.path.dirname(__file__), 'testdata')) run_script(self, """ $ hello.py hello from hello.py """, path=[testdata_dir])
def test_external_command(self): run_script(self, """ $ python -c "print('hello')" hello """)
def test_echo(self): run_script(self, """ $ echo hello world hello world """)