I'm getting stuck with some unittests.
Here's the simplest example I could come up with:
#testito.py
import unittest
class Prueba(unittest.TestCase):
def setUp(self):
pass
def printsTrue(self):
self.assertTrue(True)
if __name__=="__main__":
unittest.main()
Problem is, running this has no effect:
$ python testito.py
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
I'm scratching my head as I don't see any problem with the code above.
It happened with a couple of tests now and I don't really know what to do next.
Any idea?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…