#NEWLINE# def test_direct_product_n( ) : #NEWLINE# #INDENT# C = CyclicGroup ( 4 ) #NEWLINE# D = DihedralGroup ( 4 ) #NEWLINE# G = DirectProduct ( C , C , C ) #NEWLINE# assert ( G . order ( ) == 64 ) #NEWLINE# assert ( G . degree == 12 ) #NEWLINE# assert ( len ( G . orbits ( ) ) == 3 ) #NEWLINE# assert ( G . is_abelian is True ) #NEWLINE# H = DirectProduct ( D , C ) #NEWLINE# assert ( H . order ( ) == 32 ) #NEWLINE# assert ( H . is_abelian is False )