parent
995e4adb8c
commit
29fee01f86
2 changed files with 18 additions and 0 deletions
|
|
@ -7,12 +7,21 @@ from ..hdl.mem import *
|
|||
from .tools import *
|
||||
|
||||
|
||||
class BadElaboratable(Elaboratable):
|
||||
def elaborate(self, platform):
|
||||
return
|
||||
|
||||
|
||||
class FragmentGetTestCase(FHDLTestCase):
|
||||
def test_get_wrong(self):
|
||||
with self.assertRaises(AttributeError,
|
||||
msg="Object 'None' cannot be elaborated"):
|
||||
Fragment.get(None, platform=None)
|
||||
|
||||
with self.assertRaises(AttributeError,
|
||||
msg="Object 'None' cannot be elaborated"):
|
||||
Fragment.get(BadElaboratable(), platform=None)
|
||||
|
||||
|
||||
class FragmentGeneratedTestCase(FHDLTestCase):
|
||||
def test_find_subfragment(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue