Skip to content

Instantly share code, notes, and snippets.

@mike1026915
Created May 22, 2018 13:44
Show Gist options
  • Save mike1026915/bf1d66daaa9e911962e432d4ce32fe75 to your computer and use it in GitHub Desktop.
Save mike1026915/bf1d66daaa9e911962e432d4ce32fe75 to your computer and use it in GitHub Desktop.
import unittest
class Test(unittest.TestCase):
def test_a(self):
print ("a")
def test_b(self):
print ("b")
def test_c(self):
print("c")
if __name__ == '__main__':
suite = unittest.TestSuite()
suite.addTest(Test("test_b"))
suite.addTest(Test("test_a"))
with open("output", "a") as f:
runner = unittest.TextTestRunner(f, verbosity=2)
runner.run(suite)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment