Skip to content

Commit

Permalink
Tests for not implemented methods added
Browse files Browse the repository at this point in the history
  • Loading branch information
Chiranth Siddappa committed Dec 8, 2018
1 parent 458fb45 commit 6f7e56c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions caf_verilog/test/test_base.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from .. caf_verilog_base import CafVerilogBase
from unittest import TestCase


class TestCafVerilogBase(TestCase):

def test_instantiation(self):
CafVerilogBase()

def test_gen_tb_not_implemented(self):
cvb = CafVerilogBase()
with self.assertRaisesRegexp(NotImplementedError, 'This class has not implemented a testbench'):
cvb.gen_tb()

def test_template_dict_not_implemented(self):
cvb = CafVerilogBase()
with self.assertRaisesRegex(NotImplementedError, "This class has not implemented a template dictionary"):
cvb.template_dict()

0 comments on commit 6f7e56c

Please sign in to comment.