Created
March 11, 2013 15:09
-
-
Save zygisx/5134898 to your computer and use it in GitHub Desktop.
Python unnitest custom TestSuite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python | |
# -*- coding: utf-8 -*- | |
import unittest | |
class Task_2_TestSuite(unittest.TestSuite): | |
def add(self, test_case): | |
tests = unittest.defaultTestLoader.loadTestsFromTestCase(test_case) | |
self.addTests(tests) | |
def suite(self): | |
# TODO: add more test cases here | |
return self |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment