From 7f703bfbb31f24c84d0b224aeb3613692bddf214 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Mon, 28 Dec 2020 18:15:03 +0100 Subject: Renamed testcase to SimpleEntity. --- testsuite/pyunit/dom/SimpleEntity.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 testsuite/pyunit/dom/SimpleEntity.py (limited to 'testsuite/pyunit/dom/SimpleEntity.py') diff --git a/testsuite/pyunit/dom/SimpleEntity.py b/testsuite/pyunit/dom/SimpleEntity.py new file mode 100644 index 000000000..429c1a5a8 --- /dev/null +++ b/testsuite/pyunit/dom/SimpleEntity.py @@ -0,0 +1,25 @@ +from pathlib import Path +from unittest import TestCase + +from pyVHDLModel.VHDLModel import Design, Library, Document, Entity + + +if __name__ == "__main__": + print("ERROR: you called a testcase declaration file as an executable module.") + print("Use: 'python -m unitest '") + exit(1) + + +class Instantiate(TestCase): + def test_Design(self): + design = Design() + + def test_Library(self): + library = Library() + + def test_Document(self): + path = Path("tests.vhdl") + document = Document(path) + + def test_Entity(self): + entity = Entity("entity_1") -- cgit v1.2.3