1from ezdxf.entities import LWPolyline 2import pytest 3 4 5LWPOLYLINE = """ 0 6LWPOLYLINE 7 5 820000 9 8 10Offline 11 62 123 13100 14AcDbEntity 15100 16AcDbPolyline 17 70 180 19 90 202 21 10 221 23 20 242 25 10 261 27 20 283 29""" 30 31 32def test_fix_invalid_located_acdb_entity_group_codes(): 33 polyline = LWPolyline.from_text(LWPOLYLINE) 34 35 print(str(polyline)) 36 print(f'Layer: {polyline.dxf.layer}') 37 38 assert polyline.dxf.layer == 'Offline' 39 assert polyline.dxf.color == 3 40 41 42if __name__ == '__main__': 43 pytest.main([__file__]) 44 45