dovetail tool: fix unittest bugs 07/25207/2
authorzshi <zshi@redhat.com>
Wed, 30 Nov 2016 07:12:28 +0000 (15:12 +0800)
committerzshi <zshi@redhat.com>
Wed, 30 Nov 2016 07:21:14 +0000 (15:21 +0800)
JIRA: DOVETAIL-143

1) fix unittest import module path
2) add create_log in setup

Change-Id: Ic894fa971b4a5091affb36e8e6aac05e0e8623fb
Signed-off-by: zshi <zshi@redhat.com>
dovetail/tests/unit/test_parser.py

index 5b003d1..b4331ea 100644 (file)
@@ -17,7 +17,7 @@ import unittest
 
 import yaml
 
-import dovetail.parser as dovetail_parser
+import parser as dovetail_parser
 
 
 class TestParser(unittest.TestCase):
@@ -27,6 +27,7 @@ class TestParser(unittest.TestCase):
     def setUp(self):
         """Test case setup"""
         logging.disable(logging.CRITICAL)
+        dovetail_parser.Parser.create_log()
 
     def test_parser_cmd(self):
         """Test whether the command is correctly parsed."""