def test_add_first_vertex(self): mline = MLine() mline.extend([(0, 0, 0)]) assert mline.start_location() == (0, 0, 0) assert len(mline) == 1
def test_unbounded_mline(self): mline = MLine() assert mline.dxf.style_handle is None assert mline.dxf.style_name == 'Standard' assert mline.style is None
def test_point_count_management(self): mline = MLine() mline.load_vertices(Tags.from_text(VTX_2)) assert len(mline.vertices) == 2 assert len(mline) == 2 assert mline.dxf.count == 2, 'should be a callback to __len__()'
def mline_mock_update_geometry(self): mline = MLine() mline.update_geometry = MagicMock() return mline