def test_write_dxf(): entity = ImageDefReactor.from_text(IMAGEDEF_REACTOR) result = TagCollector.dxftags(entity) expected = basic_tags_from_text(IMAGEDEF_REACTOR) assert result == expected
def test_default_new(): entity = ImageDefReactor.new(handle='ABBA', owner='0', dxfattribs={'image_handle': 'FEFE'}) assert entity.dxf.class_version == 2 assert entity.dxf.image_handle == 'FEFE'
def entity(): return ImageDefReactor.from_text(IMAGEDEF_REACTOR)
def test_default_init(): entity = ImageDefReactor() assert entity.dxftype() == 'IMAGEDEF_REACTOR' assert entity.dxf.handle is None assert entity.dxf.owner is None
def test_default_new(): entity = ImageDefReactor.new(handle="ABBA", owner="0", dxfattribs={"image_handle": "FEFE"}) assert entity.dxf.class_version == 2 assert entity.dxf.image_handle == "FEFE"