yandex-tank/Tests/TankTests.py

22 lines
549 B
Python
Raw Normal View History

2012-09-12 13:18:58 +00:00
import logging
import unittest
import sys
class TankTestCase(unittest.TestCase):
formatter = logging.Formatter("%(asctime)s [%(levelname)s] %(name)s\t%(message)s")
logger = logging.getLogger('')
logger.setLevel(logging.DEBUG)
ch = logging.StreamHandler(sys.stdout)
ch.setLevel(logging.DEBUG)
ch.setFormatter(formatter)
logger.addHandler(ch)
logger.debug("Starting Unit Test")
class FakeOptions(object):
log=''
verbose=True
config=[]
option=['testsection.testoption=testvalue']
ignore_lock=True