Tests: unit module refactoring.

This commit is contained in:
Andrey Zelenkov
2019-03-28 18:43:13 +03:00
parent 06b9a11494
commit 19eba1730a
33 changed files with 931 additions and 918 deletions

View File

@@ -1,10 +1,10 @@
import unittest
import unit
from unit.control import TestControl
class TestUnitConfiguration(unit.TestUnitControl):
class TestConfiguration(TestControl):
def setUpClass():
unit.TestUnit().check_modules('python')
TestControl().check_modules('python')
def test_json_empty(self):
self.assertIn('error', self.conf(''), 'empty')
@@ -358,4 +358,4 @@ class TestUnitConfiguration(unit.TestUnitControl):
if __name__ == '__main__':
TestUnitConfiguration.main()
TestConfiguration.main()