()
| 403 | |
| 404 | |
| 405 | def test_center(): |
| 406 | |
| 407 | v = vertex(1, 1, 1) |
| 408 | |
| 409 | for obj in (v, Shape(v.wrapped)): |
| 410 | c = obj.Center() |
| 411 | assert c.x == approx(1) |
| 412 | assert c.y == approx(1) |
| 413 | assert c.z == approx(1) |
| 414 | |
| 415 | |
| 416 | def test_reverse(simple_box): |