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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -