def test_write_dxf():
    entity = FieldList.from_text(FIELDLIST)
    result = TagCollector.dxftags(entity)
    expected = basic_tags_from_text(FIELDLIST)
    assert result == expected
def test_default_init():
    entity = FieldList()
    assert entity.dxftype() == "FIELDLIST"
    assert entity.dxf.handle is None
    assert entity.dxf.owner is None
def test_default_new():
    entity = FieldList.new(handle="ABBA", owner="0", dxfattribs={})
    assert entity.dxf.flags == 0
    assert len(entity.handles) == 0
def entity():
    return FieldList.from_text(FIELDLIST)