aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/pyunit/dom/Instantiate.py
blob: 429c1a5a821e2cc88fba35ece443d008ffdd3bab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 <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")