test_success.py 697 B

123456789101112131415161718192021222324252627282930313233343536
  1. # -*- coding: utf-8 -*-
  2. from grass.gunittest.case import TestCase
  3. from grass.gunittest.main import test
  4. class TestSuccessVerboseSetUp(TestCase):
  5. # pylint: disable=R0904
  6. def setUp(self):
  7. print "print from setUp"
  8. def tearDown(self):
  9. print "print from tearDown"
  10. def test_something(self):
  11. self.assertTrue(True)
  12. class TestSuccessVerboseClassSetUp(TestCase):
  13. # pylint: disable=R0904
  14. @classmethod
  15. def setUpClass(cls):
  16. print "print from setUpClass"
  17. @classmethod
  18. def tearDownClass(cls):
  19. print "print from tearDownClass"
  20. def test_something(self):
  21. self.assertTrue(True)
  22. if __name__ == '__main__':
  23. test()