예제 #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
 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