示例#1
0
 def test_reset_value(self):
     attribs = GfxAttribs(rgb=(10, 20, 30))
     attribs.rgb = None
     assert attribs.rgb is None
示例#2
0
 def test_set_invalid_value_raises_exception(self):
     attribs = GfxAttribs()
     with pytest.raises(ezdxf.DXFValueError):
         attribs.rgb = (-1, 0, 0)
示例#3
0
 def test_set_value(self):
     attribs = GfxAttribs()
     attribs.rgb = (10, 20, 30)
     assert attribs.rgb == (10, 20, 30)