Why Invalid Syntax in Python Unittest

Viewed 3029
from mark_3 import * # import everything from my module
import unittest # This sets the testing framework and a main program

class TestJoeTree(unittest.TestCase):  # use a meaningful name
def testNoSolution(self):
    self.assertEqual(0, beginRunningMain(r"C:\Users\xxx\exampleNoAns.txt", "hit", "bem")

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

Hi, I am using Python 3 and I have difficulty to run this UnitTest Class. However, I keep getting the error message and I do not know how to run this unittest class in command prompt.

Here is the screenshot: enter image description here

Can anyone guide me how to solve this error message? This is my 1st day using Python and I have spent hours searching for solution. Thank you.

2 Answers
Related