Skip to content

Instantly share code, notes, and snippets.

@zygisx
Created March 11, 2013 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zygisx/5134898 to your computer and use it in GitHub Desktop.
Save zygisx/5134898 to your computer and use it in GitHub Desktop.
Python unnitest custom TestSuite
#!/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