#NEWLINE# def test_get_factors( self ) : #NEWLINE# #INDENT# self . graph . add_nodes_from ( [ 'a' , 'b' , 'c' ] ) #NEWLINE# phi1 = Factor ( [ 'a' , 'b' ] , [ 2 , 2 ] , range ( 4 ) ) #NEWLINE# phi2 = Factor ( [ 'b' , 'c' ] , [ 2 , 2 ] , range ( 4 ) ) #NEWLINE# six . assertCountEqual ( self , self . graph . get_factors ( ) , [ ] ) #NEWLINE# self . graph . add_factors ( phi1 , phi2 ) #NEWLINE# six . assertCountEqual ( self , self . graph . get_factors ( ) , [ phi1 , phi2 ] )