本文整理汇总了Python中mpx_test.DefaultTestFixture.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python DefaultTestFixture.__init__方法的具体用法?Python DefaultTestFixture.__init__怎么用?Python DefaultTestFixture.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mpx_test.DefaultTestFixture
的用法示例。
在下文中一共展示了DefaultTestFixture.__init__方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import __init__ [as 别名]
def __init__(self, other):
DefaultTestFixture.__init__(self, other)
self.eth0 = None
self.ip = None
self.server = None
self.client = None
return
示例2: __init__
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import __init__ [as 别名]
def __init__(self, *args, **kw):
DefaultTestFixture.__init__(self, *args,**kw)
EventConsumerMixin.__init__(self, self.change_of_value)
self.__event_lock = Lock()
self.__event_updated_values = {}
self._cov_counter = 0
return
示例3: __init__
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import __init__ [as 别名]
def __init__(self, *args, **kw):
DefaultTestFixture.__init__(self, *args, **kw)
self.assertions_enabled = 0
try:
assert False
except AssertionError:
self.assertions_enabled = 1
return
示例4: __init__
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import __init__ [as 别名]
def __init__(self, x):
DefaultTestFixture.__init__(self, x)
self.name = self.__class__.__name__
self.start_dir = os.getcwd()
# Create dir for preserving data and results between tests:
if exists(PRESERVE_DIR):
shutil.rmtree(PRESERVE_DIR, True)
os.makedirs(PRESERVE_DIR, 0777)
print 'prop.SRNA_TOOLS: %s' % prop.SRNA_TOOLS
print 'UPDATE_SRNA_NETWORK_PATH: %s' % UPDATE_SRNA_NETWORK_PATH
print 'UPDATE_SRNA_LOCAL_PATH: %s' % UPDATE_SRNA_LOCAL_PATH
print 'SRNA_OPENSSL_CNF_PATH: %s' % SRNA_OPENSSL_CNF_PATH
print 'SRNA_UPDATE_TGZ_SRC_PATH: %s' % SRNA_UPDATE_TGZ_SRC_PATH
print 'IP_ADDRS_PATH: %s' % IP_ADDRS_PATH
print 'ADDR_LIST_PATH: %s' % ADDR_LIST_PATH
return
示例5: __init__
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import __init__ [as 别名]
def __init__(self,*args,**kw):
args = (self,) + args
DefaultTestFixture.__init__(*args, **kw)
self.test = (
('${mpx.properties.HTTP_ROOT}',1,'beginnig of line test'),
(' ${mpx.properties.HTTP_ROOT}',1,'space before '),
(' sadfsaasdf sdfsad \${mpx.properties.HTTP_ROOT}',0,'words then a slash'),
(' \${mpx.properties.HTTP_ROOT}',0,'space then a slash'),
('some test ${mpx.properties.HTTP_ROOT} ',1,''),
(' ${mpx.properties.HTTP_ROOT} ',1,''),
('\${mpx.properties.HTTP_ROOT} ${mpx.properties.HTTP_ROOT} ',1,''),
('${mpx.properties.HTTP_ROOT} \${mpx.properties.HTTP_ROOT} ',1,''),
('${mpx.properties.HTTP_ROOT } ',0,''),
('${mpx.properties.http_root} ',0,''),
('${mpx.properties.http_root } ',0,''),
('',0,''),
('${mpx.properties.HTTP_ROOT} ${mpx.properties.HTTP_ROOT} ',1,'')
)
示例6: __init__
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import __init__ [as 别名]
def __init__(self,method_name):
DefaultTestFixture.__init__(self,method_name)
return
示例7: __init__
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import __init__ [as 别名]
def __init__(self, *args, **kw):
DefaultTestFixture.__init__(self, *args ,**kw)
return
示例8: __init__
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import __init__ [as 别名]
def __init__(self,method_name):
DefaultTestFixture.__init__(self,method_name)
self.is_root = not os.getuid()
示例9: __init__
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import __init__ [as 别名]
def __init__(self,*args):
self._port = self.STARTING_PORT
DefaultTestFixture.__init__(self,*args)
示例10: __init__
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import __init__ [as 别名]
def __init__(self,method_name):
DefaultTestFixture.__init__(self,method_name)
self.path = properties.PDO_DIRECTORY
示例11: __init__
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import __init__ [as 别名]
def __init__(self,method_name):
DefaultTestFixture.__init__(self,method_name)
self.session_manager = None
return
示例12: __init__
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import __init__ [as 别名]
def __init__(self, *args, **kw):
DefaultTestFixture.__init__(self, *args,**kw)
EventProducerMixin.__init__(self)
CompositeNode.__init__(self)
return