Added show of how many asserts were done.

This commit is contained in:
Jeremy Fincher 2003-04-29 13:02:09 +00:00
parent 26a457920e
commit 8a5e50b55a
1 changed files with 6 additions and 1 deletions

View File

@ -97,8 +97,12 @@ class Cmd(object):
return self.toString()
class PluginTestCase(unittest.TestCase):
callbacks = ()
channels = ()
def getResponse(self, command, prefix=None, channel=None):
pass
def getResponseMsg(self, msg):
pass
if __name__ == '__main__':
@ -111,4 +115,5 @@ if __name__ == '__main__':
suite = unittest.defaultTestLoader.loadTestsFromNames(names)
runner = unittest.TextTestRunner(verbosity=2)
runner.run(suite)
print 'Total asserts: %s' % unittest.asserts
world.testing = False