#NEWLINE# def test_canonicalize_no_dummies( ) : #NEWLINE# #INDENT# ( base1 , gens1 ) = get_symmetric_group_sgs ( 1 ) #NEWLINE# ( base2 , gens2 ) = get_symmetric_group_sgs ( 2 ) #NEWLINE# ( base2a , gens2a ) = get_symmetric_group_sgs ( 2 , 1 ) #NEWLINE# g = Permutation ( [ 2 , 1 , 0 , 3 , 4 ] ) #NEWLINE# can = canonicalize ( g , [ ] , 0 , ( base1 , gens1 , 3 , 0 ) ) #NEWLINE# assert ( can == list ( range ( 5 ) ) ) #NEWLINE# g = Permutation ( [ 2 , 1 , 0 , 3 , 4 ] ) #NEWLINE# can = canonicalize ( g , [ ] , 0 , ( base1 , gens1 , 3 , 1 ) ) #NEWLINE# assert ( can == [ 0 , 1 , 2 , 4 , 3 ] ) #NEWLINE# g = Permutation ( [ 1 , 3 , 2 , 0 , 4 , 5 ] ) #NEWLINE# can = canonicalize ( g , [ ] , 0 , ( base2 , gens2 , 2 , 0 ) ) #NEWLINE# assert ( can == [ 0 , 2 , 1 , 3 , 4 , 5 ] ) #NEWLINE# g = Permutation ( [ 1 , 3 , 2 , 0 , 4 , 5 ] ) #NEWLINE# can = canonicalize ( base2 , [ ] , 0 , ( base2 , gens2 , 2 , 1 ) ) #NEWLINE# assert ( can == [ 0 , 2 , 1 , 3 , 5 , 4 ] ) #NEWLINE# g = Permutation ( [ 2 , 0 , 1 , 3 , 4 , 5 ] ) #NEWLINE# can = canonicalize ( g , [ ] , 0 , ( base2 , gens2 , 2 , 1 ) ) #NEWLINE# assert ( can == [ 0 , 2 , 1 , 3 , 4 , 5 ] )