yandex-tank/Tests/ConfigManagerTest.py
Andrey Pohilko a31849c6c5 Pylint warnings
Locking functionality pushed down to Core
2012-10-08 18:54:31 +04:00

25 lines
625 B
Python

from Tank.ConsoleWorker import ConsoleTank
from Tests.TankTests import TankTestCase, FakeOptions
from tankcore import ConfigManager
import tempfile
import unittest
class ConfigManagerTestCase(TankTestCase):
def setUp(self):
tank = ConsoleTank(FakeOptions(), None)
tank.init_logging()
self.foo = ConfigManager()
def tearDown(self):
del self.foo
self.foo = None
def test_load_files(self):
confs = ['config/load_1.conf', 'config/load_2.conf']
self.foo.load_files(confs)
self.foo.flush()
if __name__ == '__main__':
unittest.main()