Exemplo n.º 1
0
 def test_access_access(self):
     """Test of accessing to 'access' attribute of a bit field."""
     bf = BitField('bf_a')
     bf.access = 'wo'
     assert bf.access == 'wo'
Exemplo n.º 2
0
 def test_access_set_wrong(self):
     """Test of setting wrong value to 'access' attribute of a bit field."""
     bf = BitField('bf_a')
     with pytest.raises(ValueError):
         bf.access = 'wr'