#NEWLINE# def test_construction_of_path_length_1( self ) : #NEWLINE# #INDENT# sequence = [ alice , alice_knows_bob , bob ] #NEWLINE# path = Path ( * self ) #NEWLINE# assert ( order ( path ) == 2 ) #NEWLINE# assert ( size ( path ) == 1 ) #NEWLINE# assert ( len ( path ) == 1 ) #NEWLINE# assert ( set ( path . nodes ( ) ) == { alice , bob } ) #NEWLINE# assert ( set ( path . relationships ( ) ) == { alice_knows_bob } ) #NEWLINE# assert ( path . start_node ( ) == alice ) #NEWLINE# assert ( path . end_node ( ) == bob ) #NEWLINE# assert ( len ( path ) == 1 ) #NEWLINE# assert ( list ( walk ( path ) ) == sequence )