Example #1
0
 def test_file_manipulation(self):
     run_script(self, """
         $ echo hello > afile
         $ cat afile
         hello
         $ rm afile
         """)
Example #2
0
 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])
Example #3
0
 def test_external_command(self):
     run_script(self, """
         $ python -c "print('hello')"
         hello
         """)
Example #4
0
 def test_echo(self):
     run_script(self, """
         $ echo hello world
         hello world
         """)