Guest User

Untitled

a guest
May 27th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. import unittest
  2.  
  3.  
  4. class Test(unittest.TestCase):
  5. def test_a(self):
  6. print ("a")
  7.  
  8. def test_b(self):
  9. print ("b")
  10.  
  11. def test_c(self):
  12. print("c")
  13.  
  14.  
  15. if __name__ == '__main__':
  16. suite = unittest.TestSuite()
  17. suite.addTest(Test("test_b"))
  18. suite.addTest(Test("test_a"))
  19. with open("output", "a") as f:
  20. runner = unittest.TextTestRunner(f, verbosity=2)
  21. runner.run(suite)
Add Comment
Please, Sign In to add comment