예제 #1
0
class T02_PontonTest(unittest.TestCase):
    '''T06_PontonTest
       Test PontonTest

    Test:
    get_platform()
    get_py_ver()
    get_wxpy_ver()
    get_system_info()

    '''

    def setUp(self):
        '''Before testing'''
        print('---')
        print('T02_PontonTest')
        print('---')
        self.__test = PontonTest()

    def test(self):
        '''Test PontonTest'''
        # get_platform
        data = self.__test.get_platform()
        self.failIfEqual(data, None)
        print(data)
        # get_py_ver
        ver = self.__test.get_py_ver()
        self.failIfEqual(ver, None)
        print(ver)
        # get_wxpy_ver
        ver = self.__test.get_wxpy_ver()
        self.failIfEqual(ver, None)
        print(ver)
        # get_system_info
        data = self.__test.get_system_info()
        self.failIfEqual(data, None)
        print(data)
예제 #2
0
 def setUp(self):
     '''Before testing'''
     print('---')
     print('T02_PontonTest')
     print('---')
     self.__test = PontonTest()