本文整理汇总了Python中socorro.unittest.testlib.util.nosePrintModule函数的典型用法代码示例。如果您正苦于以下问题:Python nosePrintModule函数的具体用法?Python nosePrintModule怎么用?Python nosePrintModule使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了nosePrintModule函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setup_module
def setup_module():
global me
if me:
return
me = Me()
tutil.nosePrintModule(__file__)
me.testDB = TestDB()
me.config = configurationManager.newConfiguration(configurationModule = testConfig, applicationName='TestingCachedIdAccess')
myDir = os.path.split(__file__)[0]
if not myDir: myDir = '.'
replDict = {'testDir':'%s'%myDir}
for i in me.config:
try:
me.config[i] = me.config.get(i)%(replDict)
except:
pass
cia.logger.setLevel(logging.DEBUG)
me.logFilePathname = me.config.logFilePathname
logfileDir = os.path.split(me.config.logFilePathname)[0]
try:
os.makedirs(logfileDir)
except OSError,x:
if errno.EEXIST != x.errno: raise
f = open(me.config.logFilePathname,'w')
f.close()
示例2: setup_module
def setup_module():
global me
if me:
return
me = Me()
tutil.nosePrintModule(__file__)
me.config = configurationManager.newConfiguration(
configurationModule=testConfig, applicationName="Testing Postgresql Utils"
)
myDir = os.path.split(__file__)[0]
if not myDir:
myDir = "."
replDict = {"testDir": "%s" % myDir}
for i in me.config:
try:
me.config[i] = me.config.get(i) % (replDict)
except:
pass
me.logFilePathname = me.config.logFilePathname
if not me.logFilePathname:
me.logFilePathname = "logs/db_test.log"
logFileDir = os.path.split(me.logFilePathname)[0]
try:
os.makedirs(logFileDir)
except OSError, x:
if errno.EEXIST == x.errno:
pass
else:
raise
示例3: setup_module
def setup_module():
global me
if me:
return
me = Me()
tutil.nosePrintModule(__file__)
# config gets messed up by some tests. Use this one during module setup and teardown
me.config = configurationManager.newConfiguration(configurationModule = testConfig, applicationName='Testing Postgresql Utils')
myDir = os.path.split(__file__)[0]
if not myDir: myDir = '.'
replDict = {'testDir':'%s'%myDir}
for i in me.config:
try:
me.config[i] = me.config.get(i)%(replDict)
except:
pass
me.logFilePathname = me.config.logFilePathname
if not me.logFilePathname:
me.logFilePathname = 'logs/db_test.log'
logFileDir = os.path.split(me.logFilePathname)[0]
try:
os.makedirs(logFileDir)
except OSError,x:
if errno.EEXIST == x.errno: pass
else: raise
示例4: setup_module
def setup_module():
global me
tutil.nosePrintModule(__file__)
if me:
return
me = Me()
me.config = configurationManager.newConfiguration(configurationModule = testConfig, applicationName='Testing TCByUrl')
tcbu.logger.setLevel(logging.DEBUG)
myDir = os.path.split(__file__)[0]
if not myDir: myDir = '.'
replDict = {'testDir':'%s'%myDir}
for i in me.config:
try:
me.config[i] = me.config.get(i)%(replDict)
except:
pass
me.logFilePathname = me.config.logFilePathname
logFileDir = os.path.split(me.logFilePathname)[0]
try:
os.makedirs(logFileDir)
except OSError,x:
if errno.EEXIST == x.errno: pass
else: raise
示例5: setup_module
def setup_module():
tutil.nosePrintModule(__file__)