7
Executando teste único a partir do unittest.TestCase via linha de comando
Em nossa equipe, definimos a maioria dos casos de teste como este: Uma classe "framework" ourtcfw.py: import unittest class OurTcFw(unittest.TestCase): def setUp: # something # other stuff that we want to use everywhere e muitos casos de teste como testMyCase.py: import localweather class MyCase(OurTcFw): def testItIsSunny(self): self.assertTrue(localweather.sunny) def testItIsHot(self): self.assertTrue(localweather.temperature …