diff options
author | Unai Martinez-Corral <38422348+umarcor@users.noreply.github.com> | 2021-07-02 00:10:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-02 00:10:18 +0100 |
commit | 1da694fe05363bf29359b5290042073774a11f25 (patch) | |
tree | b4d55f210cfbf90847dc56a60058afa819107030 /testsuite/pyunit/dom/Expressions.py | |
parent | 69e6630acb723282ddde95ad0681ac71686df8e8 (diff) | |
parent | ae51fcf65f195e065987f379410d3f68c14f4a2b (diff) | |
download | ghdl-1da694fe05363bf29359b5290042073774a11f25.tar.gz ghdl-1da694fe05363bf29359b5290042073774a11f25.tar.bz2 ghdl-1da694fe05363bf29359b5290042073774a11f25.zip |
pyHDL: CLI Update for DOM (#1808)
Diffstat (limited to 'testsuite/pyunit/dom/Expressions.py')
-rw-r--r-- | testsuite/pyunit/dom/Expressions.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/testsuite/pyunit/dom/Expressions.py b/testsuite/pyunit/dom/Expressions.py index 4de36a2b2..113e541ac 100644 --- a/testsuite/pyunit/dom/Expressions.py +++ b/testsuite/pyunit/dom/Expressions.py @@ -87,9 +87,9 @@ class Expressions(TestCase): default: Expression = self.parse(filename, constantDeclartion) # Start checks - self.assertTrue(isinstance(default, InverseExpression)) - self.assertTrue(isinstance(default.Operand, SimpleObjectOrFunctionCallSymbol)) - self.assertTrue(default.Operand.SymbolName == "true") + self.assertIsInstance(default, InverseExpression) + self.assertIsInstance(default.Operand, SimpleObjectOrFunctionCallSymbol) + self.assertEqual("true", str(default.Operand.SymbolName)) # def test_AbsExpression(self): # filename: Path = self._root / "{className}_{funcName}.vhdl".format( @@ -103,8 +103,8 @@ class Expressions(TestCase): # default: Expression = self.parse(filename, constantDeclartion) # # # Start checks - # self.assertTrue(isinstance(default, AbsoluteExpression)) - # self.assertTrue(isinstance(default.Operand, SimpleObjectOrFunctionCallSymbol)) + # self.assertIsInstance(default, AbsoluteExpression) + # self.assertIsInstance(default.Operand, SimpleObjectOrFunctionCallSymbol) # self.assertTrue(default.Operand.SymbolName == "-3") # def test_Aggregare(self): @@ -130,6 +130,6 @@ class Expressions(TestCase): # package: Package = design.Documents[0].Packages[0] # item: Constant = package.DeclaredItems[0] # default: Expression = item.DefaultExpression - # self.assertTrue(isinstance(default, InverseExpression)) - # self.assertTrue(isinstance(default.Operand, SimpleObjectOrFunctionCallSymbol)) + # self.assertIsInstance(default, InverseExpression) + # self.assertIsInstance(default.Operand, SimpleObjectOrFunctionCallSymbol) # self.assertTrue(default.Operand.SymbolName == "true") |