"""Tests the menu features."""

##==============================================================#
## SECTION: Imports                                             #
##==============================================================#

from testlib import *

from qprompt import enum_menu

##==============================================================#
## SECTION: Class Definitions                                   #
##==============================================================#

class TestCase(unittest.TestCase):

    def test_menu_1(test):
        """Check for main() call from console functionality."""

        test.assertFalse(op.exists("generated_file.txt"))
        subprocess.call("menu_helper_1.py g q", shell=True)
        test.assertTrue(op.exists("generated_file.txt"))
        subprocess.call("menu_helper_1.py d q", shell=True)
        test.assertFalse(op.exists("generated_file.txt"))

##==============================================================#
## SECTION: Main Body                                           #
##==============================================================#

if __name__ == '__main__':
    unittest.main()

"""Tests the menu features."""

##==============================================================#
## SECTION: Imports                                             #
##==============================================================#

from testlib import *

from qprompt import enum_menu

##==============================================================#
## SECTION: Class Definitions                                   #
##==============================================================#

class TestCase(unittest.TestCase):

    def test_menu_1(test):
        """Check for main() call from console functionality."""

        test.assertFalse(op.exists("generated_file.txt"))
        subprocess.call("python ./menu_helper_1.py g q", shell=True)
        test.assertTrue(op.exists("generated_file.txt"))
        subprocess.call("python ./menu_helper_1.py d q", shell=True)
        test.assertFalse(op.exists("generated_file.txt"))

##==============================================================#
## SECTION: Main Body                                           #
##==============================================================#

if __name__ == '__main__':
    unittest.main()

Change to get test to pass.
Change to get test to pass.

  """Tests the menu features."""
  
  ##==============================================================#
  ## SECTION: Imports                                             #
  ##==============================================================#
  
  from testlib import *
  
  from qprompt import enum_menu
  
  ##==============================================================#
  ## SECTION: Class Definitions                                   #
  ##==============================================================#
  
  class TestCase(unittest.TestCase):
  
      def test_menu_1(test):
          """Check for main() call from console functionality."""
  
          test.assertFalse(op.exists("generated_file.txt"))
-         subprocess.call("menu_helper_1.py g q", shell=True)
+         subprocess.call("python ./menu_helper_1.py g q", shell=True)
          test.assertTrue(op.exists("generated_file.txt"))
-         subprocess.call("menu_helper_1.py d q", shell=True)
+         subprocess.call("python ./menu_helper_1.py d q", shell=True)
          test.assertFalse(op.exists("generated_file.txt"))
  
  ##==============================================================#
  ## SECTION: Main Body                                           #
  ##==============================================================#
  
  if __name__ == '__main__':
      unittest.main()
  
Change to get test to pass.
## Code Before:
"""Tests the menu features."""

##==============================================================#
## SECTION: Imports                                             #
##==============================================================#

from testlib import *

from qprompt import enum_menu

##==============================================================#
## SECTION: Class Definitions                                   #
##==============================================================#

class TestCase(unittest.TestCase):

    def test_menu_1(test):
        """Check for main() call from console functionality."""

        test.assertFalse(op.exists("generated_file.txt"))
        subprocess.call("menu_helper_1.py g q", shell=True)
        test.assertTrue(op.exists("generated_file.txt"))
        subprocess.call("menu_helper_1.py d q", shell=True)
        test.assertFalse(op.exists("generated_file.txt"))

##==============================================================#
## SECTION: Main Body                                           #
##==============================================================#

if __name__ == '__main__':
    unittest.main()

## Instruction:
Change to get test to pass.
## Code After:
"""Tests the menu features."""

##==============================================================#
## SECTION: Imports                                             #
##==============================================================#

from testlib import *

from qprompt import enum_menu

##==============================================================#
## SECTION: Class Definitions                                   #
##==============================================================#

class TestCase(unittest.TestCase):

    def test_menu_1(test):
        """Check for main() call from console functionality."""

        test.assertFalse(op.exists("generated_file.txt"))
        subprocess.call("python ./menu_helper_1.py g q", shell=True)
        test.assertTrue(op.exists("generated_file.txt"))
        subprocess.call("python ./menu_helper_1.py d q", shell=True)
        test.assertFalse(op.exists("generated_file.txt"))

##==============================================================#
## SECTION: Main Body                                           #
##==============================================================#

if __name__ == '__main__':
    unittest.main()
