本文整理汇总了Python中mpx_test.DefaultTestFixture.tearDown方法的典型用法代码示例。如果您正苦于以下问题:Python DefaultTestFixture.tearDown方法的具体用法?Python DefaultTestFixture.tearDown怎么用?Python DefaultTestFixture.tearDown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mpx_test.DefaultTestFixture
的用法示例。
在下文中一共展示了DefaultTestFixture.tearDown方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: tearDown
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import tearDown [as 别名]
def tearDown(self):
try:
self.root.prune()
self.root = None
finally:
DefaultTestFixture.tearDown(self)
return
示例2: tearDown
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import tearDown [as 别名]
def tearDown(self):
try:
if hasattr(self,'server'):
del self.server
if hasattr(self,'client'):
del self.client
if hasattr(self,'lhc'):
del self.lhc
if hasattr(self,'lhs'):
self.lhs.server.server_thread.should_die()
self.lhs.server.close_connection()
kill_a_server(self.lhs.server.server_thread)
while self.lhs.server.server_thread.isAlive():
time.sleep(0.01)
# @fixme WHY IS THIS COMMENTED?
#self.lhs.server.server_thread.exit()
del self.lhs.server.server_thread
del self.lhs.server
del self.lhs
if hasattr(self,'ip'):
del self.ip
if hasattr(self,'eth0'):
del self.eth0
finally:
DefaultTestFixture.tearDown(self)
return
示例3: tearDown
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import tearDown [as 别名]
def tearDown(self):
try:
self._circular.close()
del(self._circular)
finally:
DefaultTestFixture.tearDown(self)
return
示例4: tearDown
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import tearDown [as 别名]
def tearDown(self):
try:
if hasattr(self, 'seq'):
del self.seq
finally:
DefaultTestFixture.tearDown(self)
return
示例5: tearDown
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import tearDown [as 别名]
def tearDown(self):
try:
if hasattr(self,'collector'):
del self.collector
finally:
DefaultTestFixture.tearDown(self)
return
示例6: tearDown
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import tearDown [as 别名]
def tearDown(self):
self.user_manager.stop()
self.user_manager = None
os.unlink(self.passwd_file)
self.passwd_file = None
DefaultTestFixture.tearDown(self)
return
示例7: tearDown
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import tearDown [as 别名]
def tearDown(self):
try:
self.rna_target._abort = True
self.root.prune()
self.root = None
finally:
DefaultTestFixture.tearDown(self)
return
示例8: tearDown
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import tearDown [as 别名]
def tearDown(self):
pfx = '%s.%s: ' % (self.name, f_name())
try:
# Delete TGZ file, add_list,
# Rmv user "mpxadmin"
#
pass
finally:
DefaultTestFixture.tearDown(self)
return
示例9: tearDown
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import tearDown [as 别名]
def tearDown(self):
self.del_node_tree()
DefaultTestFixture.tearDown(self)
return
示例10: tearDown
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import tearDown [as 别名]
def tearDown(self):
self.pool._unload()
DefaultTestFixture.tearDown(self)
return
示例11: tearDown
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import tearDown [as 别名]
def tearDown(self):
DefaultTestFixture.tearDown(self)
# Restore scheduler's time
mpx.lib.scheduler._scheduler.time = _time
示例12: tearDown
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import tearDown [as 别名]
def tearDown(self):
try:
self.log.destroy()
finally:
DefaultTestFixture.tearDown(self)
return
示例13: tearDown
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import tearDown [as 别名]
def tearDown(self):
try:
self._tearDown()
finally:
DefaultTestFixture.tearDown(self)
return
示例14: tearDown
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import tearDown [as 别名]
def tearDown(self):
DefaultTestFixture.tearDown(self)
return
示例15: tearDown
# 需要导入模块: from mpx_test import DefaultTestFixture [as 别名]
# 或者: from mpx_test.DefaultTestFixture import tearDown [as 别名]
def tearDown(self):
os.chdir(ORIG_DIR)
DefaultTestFixture.tearDown(self)
return