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'
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'