Exemplo n.º 1
0
 def test_add_first_vertex(self):
     mline = MLine()
     mline.extend([(0, 0, 0)])
     assert mline.start_location() == (0, 0, 0)
     assert len(mline) == 1
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
 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__()'
Exemplo n.º 4
0
 def mline_mock_update_geometry(self):
     mline = MLine()
     mline.update_geometry = MagicMock()
     return mline