]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/UnitTest/DecParserUnitTest.py
BaseTools: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / BaseTools / Source / Python / UPT / UnitTest / DecParserUnitTest.py
index afea4a438b62242116afa270c61d2efad3c2d389..bac127f8e2ac941543fed1119323418490d7936d 100644 (file)
@@ -3,13 +3,7 @@
 #\r
 # Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
-# This program and the accompanying materials are licensed and made available\r
-# under the terms and conditions of the BSD License which accompanies this\r
-# distribution. The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 import os\r
 import unittest\r
@@ -61,9 +55,9 @@ class MacroParserTestCase(unittest.TestCase):
         self.dec = _DecBase(FileContent('dummy', []))\r
 \r
     def testCorrectMacro(self):\r
-        self.dec._MacroParser('DEFINE MARCRO1 = test1')\r
-        self.failIf('MARCRO1' not in self.dec._LocalMacro)\r
-        self.assertEqual(self.dec._LocalMacro['MARCRO1'], 'test1')\r
+        self.dec._MacroParser('DEFINE MACRO1 = test1')\r
+        self.failIf('MACRO1' not in self.dec._LocalMacro)\r
+        self.assertEqual(self.dec._LocalMacro['MACRO1'], 'test1')\r
 \r
     def testErrorMacro1(self):\r
         # Raise fatal error, macro name must be upper case letter\r