I’m having a weird issue with Unittest. Since it’s part of the main library, should work just importing the module.
Although even I’m importing Unittest, I can’t find any declaration or call any of it’s functions, as the screenshot shows:
Thought it would be an issue with the latest version (3.12, not using the pre release). I installed versions 3.11 and 3.10, but still having the same issue.
It’s difficult to tell from that tiny bit of code, but the fact that your IDE underlines self suggests to me that you are doing this at a location where self is not defined. Do you understand that the way you use the unittest is by extending the TestCase class and writing test methods inside your class?