python - Why is the assert not getting imported here -
I have a case for the following unit testing. Import from webpage Connect toTest UTis Import webpageTeast Processor class webpage Utilitest (Unittest.TestCase): def setup (self): self.webPageTestProcessor = WebPageTestProcessor () def test_submitTest (self): url = None; Criterion (self webpage testprocessor submitTest (url), none) If __name__ == '__main__': unittest.main () After execution, I get an error saying. Name Error: The global name 'assertEqual' is not defined I am united to substate.TestCase, then why does not recognize the dragon identity This is a method on self: self .assertEqual (Self.webPageTestProcessor.submitTest (url), none)