-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_template.py
More file actions
38 lines (28 loc) · 934 Bytes
/
test_template.py
File metadata and controls
38 lines (28 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- coding:utf-8 -*-
# import logging
import unittest
# from com.dvsnier.config.journal.common_config import config
class Test_XXX(unittest.TestCase):
''' the test xxx '''
@classmethod
def setUpClass(cls):
print("...the set up...")
print('')
# kwargs = {'output_dir_name': 'log', 'file_name': 'config', 'level': logging.DEBUG}
# cls._logging = config(kwargs)
def setUp(self):
super(Test_XXX, self).setUp()
def test_xxx(self):
print("the test xxx(test_template.py) is succeed.")
pass
def tearDown(self):
super(Test_XXX, self).tearDown()
@classmethod
def tearDownClass(cls):
print('')
print("...the tear down...")
if __name__ == '__main__':
''' the unittest suite '''
suite = unittest.TestLoader().loadTestsFromTestCase(Test_XXX)
unittest.TextTestRunner(verbosity=2).run(suite)
# unittest.main()