diff options
Diffstat (limited to 'testsuite/pyunit/dom/Instantiate.py')
-rw-r--r-- | testsuite/pyunit/dom/Instantiate.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/pyunit/dom/Instantiate.py b/testsuite/pyunit/dom/Instantiate.py new file mode 100644 index 000000000..c3509e39b --- /dev/null +++ b/testsuite/pyunit/dom/Instantiate.py @@ -0,0 +1,24 @@ +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 <testcase module>'") + 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") |