コード例 #1
0
 def test_permutation_constructor(self):
     perm = Affine.permutation()
     assert isinstance(perm, Affine)
     assert \
         tuple(perm) == \
         (0, 1, 0,
          1, 0, 0,
          0, 0, 1)
     assert (perm * perm).is_identity
コード例 #2
0
ファイル: test_transform.py プロジェクト: mwtoews/affine
 def test_permutation_constructor(self):
     perm = Affine.permutation()
     assert isinstance(perm, Affine)
     assert \
         tuple(perm) == \
         (0, 1, 0,
          1, 0, 0,
          0, 0, 1)
     assert (perm*perm).is_identity