def testSuite(self):
     suite1 = TestSuite()
     suite1.add(WasRun("testMethod"))
     suite1.add(WasRun("testBrokenMethod"))
     suite1.run(self.result)
     assert "2 run, 1 failed" == self.result.summary()
 def testResult(self):
     test = WasRun("testMethod")
     test.run(self.result)
     assert "1 run, 0 failed" == self.result.summary()
 def testFailedResult(self):
     test = WasRun("testBrokenMethod")
     test.run(self.result)
     assert "1 run, 1 failed" == self.result.summary()
 def testTemplateMethod(self):
     test = WasRun("testMethod")
     test.run(self.result)
     assert ("setUp testMethod tearDown " == test.log)