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)  

Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -