Just uninstall the extension .py.
You run your tests using the command line flag -m. The Python documentation will tell you more about this, just check out this link .
, -m , - unittest. , Python ( ). , FirstTest mytests mypackage, :
python -m unittest mypackage.mytests.FirstTest
, mypackage. , ( ).
.py, unittest py (, ) , , . , :
AttributeError: ’module’ object has no attribute ’py’