blob: 0fd8ccc6382473615b84a9da42530dfc4ed9ccaa [file] [log] [blame]
andrewonlab61354f82014-12-05 16:43:25 -05001
2import time
3import os
4import re
5
kelvin-onlab8a832582015-01-16 17:06:11 -08006
andrewonlab61354f82014-12-05 16:43:25 -05007class ClassTest:
kelvin-onlab8a832582015-01-16 17:06:11 -08008
9 def __init__( self ):
andrewonlab61354f82014-12-05 16:43:25 -050010 self.default = ''
11
kelvin-onlab8a832582015-01-16 17:06:11 -080012 def CASE1( self, main ):
andrewonlab61354f82014-12-05 16:43:25 -050013 import time
14 import imp
15
kelvin-onlab8a832582015-01-16 17:06:11 -080016 init = imp.load_source(
17 'ClassInit',
18 '/home/admin/ONLabTest/TestON/tests/ClassTest/Dependency/ClassInit.py' )
andrewonlab61354f82014-12-05 16:43:25 -050019
kelvin-onlab8a832582015-01-16 17:06:11 -080020 ip1_from_class = init.getIp1()
21 init.printMain( main )
andrewonlab61354f82014-12-05 16:43:25 -050022
kelvin-onlab8a832582015-01-16 17:06:11 -080023 main.log.info( ip1_from_class )
andrewonlab61354f82014-12-05 16:43:25 -050024
kelvin-onlab8a832582015-01-16 17:06:11 -080025 def CASE2( self, main ):
andrewonlab61354f82014-12-05 16:43:25 -050026
kelvin-onlab8a832582015-01-16 17:06:11 -080027 main.log.info( "Case 2" )