#NEWLINE# def test_hypergraph_equality_weight( self ) : #NEWLINE# #INDENT# '\n        Hyperaph equality test. This one checks edge equality. \n        ' #NEWLINE# gr = hypergraph ( ) #NEWLINE# gr . add_nodes ( [ 0 , 1 , 2 , 3 ] ) #NEWLINE# gr . add_edge ( 'e1' ) #NEWLINE# gr . add_edge ( 'e2' ) #NEWLINE# gr . add_edge ( 'e3' ) #NEWLINE# gr . set_edge_weight ( 'e1' , 2 ) #NEWLINE# gr2 = deepcopy ( gr ) #NEWLINE# gr3 = deepcopy ( gr ) #NEWLINE# gr3 . set_edge_weight ( 'e3' , 2 ) #NEWLINE# gr4 = deepcopy ( gr ) #NEWLINE# gr4 . set_edge_weight ( 'e1' , 1 ) #NEWLINE# assert ( gr == gr2 ) #NEWLINE# assert ( gr2 == gr ) #NEWLINE# assert ( gr != gr3 ) #NEWLINE# assert ( gr3 != gr ) #NEWLINE# assert ( gr != gr4 ) #NEWLINE# assert ( gr4 != gr )