Exemplo n.º 1
0
 def test_identity(self):
     t = PdfAnnotator._get_transform(
         bounding_box=[0, 0, 100, 200],
         rotation=0,
         _scale=(1, 1),
     )
     assert t == identity()
Exemplo n.º 2
0
 def _assert_transform(
     self,
     expected,
     rotation=0,
     scale=(1, 1),
     bounding_box=None,
 ):
     bounding_box = bounding_box or [0, 0, 100, 200]
     t = PdfAnnotator._get_transform(
         bounding_box=bounding_box,
         rotation=rotation,
         _scale=scale,
     )
     assert_matrices_equal(t, expected)