()
| 8 | |
| 9 | |
| 10 | def test_bad_align_legal(): |
| 11 | # Legal |
| 12 | Align("foo", "left") |
| 13 | Align("foo", "center") |
| 14 | Align("foo", "right") |
| 15 | |
| 16 | # illegal |
| 17 | with pytest.raises(ValueError): |
| 18 | Align("foo", None) |
| 19 | with pytest.raises(ValueError): |
| 20 | Align("foo", "middle") |
| 21 | with pytest.raises(ValueError): |
| 22 | Align("foo", "") |
| 23 | with pytest.raises(ValueError): |
| 24 | Align("foo", "LEFT") |
| 25 | with pytest.raises(ValueError): |
| 26 | Align("foo", vertical="somewhere") |
| 27 | |
| 28 | |
| 29 | def test_repr(): |