def test_basic(self): """Test invoking debugger without a file name""" result=Mhelper.run_debugger(testname='noscript', dbgr_opts='--basename', python_file=None) self.assertEqual(True, result, "debugger 'step' command comparision") return
def test_step(self): """Test stepping, set skip, set trace""" result = Mhelper.run_debugger(testname='step', dbgr_opts='--basename --highlight=plain', python_file='gcd.py') self.assertEqual(True, result, "debugger 'step' command comparision") return
def test_macro(self): """Test macro and info macro""" result = Mhelper.run_debugger(testname='macro', dbgr_opts='--basename ' + '--highlight=plain --nx', python_file='gcd.py') self.assertEqual(True, result, "debugger 'macro' command comparision") return
def test_macro(self): """Test set/show highlight""" result=Mhelper.run_debugger(testname='highlight', dbgr_opts='--basename ' + '--highlight=plain --nx', python_file='gcd.py') self.assertEqual(True, result, "'highlight' command comparision") return
def test_step(self): """Test stepping, set skip, set trace""" if PYTHON_VERSION >= 3.8: right_template = '%s-38.right' else: right_template = None result=Mhelper.run_debugger(testname='step', dbgr_opts='--basename --highlight=plain', python_file='gcd.py', right_template = right_template) self.assertEqual(True, result, "debugger 'step' command comparision") return
def test_macro(self): """Test set/show highlight""" if PYTHON_VERSION >= 3.8: right_template = '%s-38.right' else: right_template = None result = Mhelper.run_debugger(testname='highlight', dbgr_opts='--basename ' + '--highlight=plain --nx', python_file='gcd.py', right_template=right_template) self.assertEqual(True, result, "'highlight' command comparision") return
def test_step(self): """Test stepping, set skip, set trace""" result = Mhelper.run_debugger(testname="step", dbgr_opts="--basename --highlight=plain", python_file="gcd.py") self.assertEqual(True, result, "debugger 'step' command comparision") return