(self)
| 5909 | ) |
| 5910 | |
| 5911 | def test_line_from_vertex(self): |
| 5912 | |
| 5913 | # select one vertex and create an Edge |
| 5914 | res = Workplane().rect(1, 1).vertices(">(1,1,0)").line(1, 0) |
| 5915 | |
| 5916 | # check if an Edge was created |
| 5917 | assert isinstance(res.val(), Edge) |
| 5918 | |
| 5919 | # check that errors are handled |
| 5920 | with raises(ValueError): |
| 5921 | Workplane().box(1, 1, 1).line(1, 0) |