Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma committed May 19, 2022
1 parent cadbf07 commit 0984f44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,7 @@ def test_page_scale():
op = Transformation()
with pytest.raises(ValueError) as exc:
op.scale()
assert exc.value.args[0] == "Either sx or sy must be specified"

assert op.scale(sx=2).ctm == (2, 0, 0, 2, 0, 0)
assert op.scale(sy=3).ctm == (3, 0, 0, 3, 0, 0)

0 comments on commit 0984f44

Please sign in to comment.