yandex-tank/tests/ConfigManager_Test.py
2015-02-17 02:50:50 +03:00

25 lines
637 B
Python

from yandextank.core.consoleworker import ConsoleTank
from Tank_Test import TankTestCase, FakeOptions
from yandextank.core 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()