-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests for not implemented methods added
- Loading branch information
Chiranth Siddappa
committed
Dec 8, 2018
1 parent
458fb45
commit 6f7e56c
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |