#NEWLINE# def test_equality( self ) : #NEWLINE# #INDENT# other_subgraph = ( ( ( ( alice_knows_bob | alice_likes_carol ) | carol_dislikes_bob ) | carol_married_to_dave ) | dave_works_for_dave ) #NEWLINE# assert ( self . subgraph == other_subgraph ) #NEWLINE# assert ( hash ( other_subgraph . subgraph ) == hash ( other_subgraph ) )