123456789101112131415161718192021222324252627282930313233343536 |
- # -*- coding: utf-8 -*-
- from grass.gunittest.case import TestCase
- from grass.gunittest.main import test
- class TestSuccessVerboseSetUp(TestCase):
- # pylint: disable=R0904
- def setUp(self):
- print "print from setUp"
- def tearDown(self):
- print "print from tearDown"
- def test_something(self):
- self.assertTrue(True)
- class TestSuccessVerboseClassSetUp(TestCase):
- # pylint: disable=R0904
- @classmethod
- def setUpClass(cls):
- print "print from setUpClass"
- @classmethod
- def tearDownClass(cls):
- print "print from tearDownClass"
- def test_something(self):
- self.assertTrue(True)
- if __name__ == '__main__':
- test()
|