aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/pyunit/dom/SimpleEntity.py
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-30 12:20:54 +0200
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-07-01 06:39:46 +0200
commit03f5a6cd6f88aef6c6580f471905403056313f05 (patch)
tree2575a3e277dbb27fcc196d8121a7528cf348faff /testsuite/pyunit/dom/SimpleEntity.py
parent8a815d48790db46652034b6a72a581b0c9f40f40 (diff)
downloadghdl-03f5a6cd6f88aef6c6580f471905403056313f05.tar.gz
ghdl-03f5a6cd6f88aef6c6580f471905403056313f05.tar.bz2
ghdl-03f5a6cd6f88aef6c6580f471905403056313f05.zip
Exchanged sides in asserts to the understanding of pytests actual vs. expected order.
Diffstat (limited to 'testsuite/pyunit/dom/SimpleEntity.py')
-rw-r--r--testsuite/pyunit/dom/SimpleEntity.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/testsuite/pyunit/dom/SimpleEntity.py b/testsuite/pyunit/dom/SimpleEntity.py
index 657e8abeb..68f702410 100644
--- a/testsuite/pyunit/dom/SimpleEntity.py
+++ b/testsuite/pyunit/dom/SimpleEntity.py
@@ -59,20 +59,20 @@ class SimpleEntity(TestCase):
document = Document(self._filename)
design.Documents.append(document)
- self.assertEqual(len(design.Documents), 1)
+ self.assertEqual(1, len(design.Documents))
def test_Entity(self):
design = Design()
document = Document(self._filename)
design.Documents.append(document)
- self.assertEqual(len(design.Documents[0].Entities), 1)
- self.assertEqual(design.Documents[0].Entities[0].Identifier, "entity_1")
+ self.assertEqual(1, len(design.Documents[0].Entities))
+ self.assertEqual("entity_1", design.Documents[0].Entities[0].Identifier)
def test_Architecture(self):
design = Design()
document = Document(self._filename)
design.Documents.append(document)
- self.assertEqual(len(design.Documents[0].Architectures), 1)
- self.assertEqual(design.Documents[0].Architectures[0].Identifier, "behav")
+ self.assertEqual(1, len(design.Documents[0].Architectures))
+ self.assertEqual("behav", design.Documents[0].Architectures[0].Identifier)