()
| 314 | |
| 315 | |
| 316 | def test_layout_comp(): |
| 317 | a = Layout([Rectangle(1, 2, 3, 4)]) |
| 318 | b = Layout([Rectangle(1, 2, 3, 4)]) |
| 319 | |
| 320 | assert a == b |
| 321 | |
| 322 | a.append(Rectangle(1, 2, 3, 5)) |
| 323 | assert a != b |
| 324 | b.append(Rectangle(1, 2, 3, 5)) |
| 325 | assert a == b |
| 326 | |
| 327 | a = Layout([TextBlock(Rectangle(1, 2, 3, 4))]) |
| 328 | assert a != b |
| 329 | |
| 330 | |
| 331 | def test_shape_operations(): |