summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/UPT/UnitTest/CommentParsingUnitTest.py
diff options
context:
space:
mode:
Diffstat (limited to 'BaseTools/Source/Python/UPT/UnitTest/CommentParsingUnitTest.py')
-rw-r--r--BaseTools/Source/Python/UPT/UnitTest/CommentParsingUnitTest.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/BaseTools/Source/Python/UPT/UnitTest/CommentParsingUnitTest.py b/BaseTools/Source/Python/UPT/UnitTest/CommentParsingUnitTest.py
index 3ed3345c6d..a114ff22a7 100644
--- a/BaseTools/Source/Python/UPT/UnitTest/CommentParsingUnitTest.py
+++ b/BaseTools/Source/Python/UPT/UnitTest/CommentParsingUnitTest.py
@@ -1,7 +1,7 @@
## @file
# This file contain unit test for CommentParsing
#
-# Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>
#
# This program and the accompanying materials are licensed and made available
# under the terms and conditions of the BSD License which accompanies this
@@ -21,7 +21,7 @@ from Library.CommentParsing import ParseHeaderCommentSection, \
from Library.CommentParsing import _IsCopyrightLine
from Library.String import GetSplitValueList
from Library.DataType import TAB_SPACE_SPLIT
-from Library.DataType import LANGUAGE_EN_US
+from Library.DataType import TAB_LANGUAGE_EN_US
#
# Test ParseHeaderCommentSection
@@ -467,7 +467,7 @@ class ParseGenericCommentTest(unittest.TestCase):
HelptxtObj = ParseGenericComment(TestCommentLinesList, 'testNormalCase1')
self.failIf(not HelptxtObj)
self.assertEqual(HelptxtObj.GetString(), 'hello world')
- self.assertEqual(HelptxtObj.GetLang(), LANGUAGE_EN_US)
+ self.assertEqual(HelptxtObj.GetLang(), TAB_LANGUAGE_EN_US)
#
# Normal case2: multiple lines of comment
@@ -488,7 +488,7 @@ class ParseGenericCommentTest(unittest.TestCase):
self.failIf(not HelptxtObj)
self.assertEqual(HelptxtObj.GetString(),
'hello world\n' + 'second line')
- self.assertEqual(HelptxtObj.GetLang(), LANGUAGE_EN_US)
+ self.assertEqual(HelptxtObj.GetLang(), TAB_LANGUAGE_EN_US)
#
# Normal case3: multiple lines of comment, non comment lines will be skipped
@@ -509,7 +509,7 @@ class ParseGenericCommentTest(unittest.TestCase):
self.failIf(not HelptxtObj)
self.assertEqual(HelptxtObj.GetString(),
'hello world\n\n')
- self.assertEqual(HelptxtObj.GetLang(), LANGUAGE_EN_US)
+ self.assertEqual(HelptxtObj.GetLang(), TAB_LANGUAGE_EN_US)
#
# Test ParseDecPcdGenericComment