Esempio n. 1
0
 def test_access_strobes_set_wrong(self):
     """Test of setting wrong value to 'access_strobes' attribute of a register."""
     reg = Register('REGA', 'Register A')
     with pytest.raises(ValueError):
         reg.access_strobes = 0
Esempio n. 2
0
 def test_access_strobes_access(self):
     """Test of accessing to 'access_strobes' attribute of a register."""
     reg = Register('REGA', 'Register A')
     reg.access_strobes = True
     assert reg.access_strobes is True