#NEWLINE# def test_record_can_be_exposed_as_graph( self ) : #NEWLINE# #INDENT# keys = [ 'a' , 'b' , 'ab' , 'msg' ] #NEWLINE# values = [ alice , bob , alice_knows_bob , 'hello, world' ] #NEWLINE# record = Record ( keys , values ) #NEWLINE# assert ( len ( record ) == 4 ) #NEWLINE# assert ( order ( record ) == 2 ) #NEWLINE# assert ( size ( record ) == 1 ) #NEWLINE# assert ( record . nodes ( ) == { alice , bob } ) #NEWLINE# assert ( record . relationships ( ) == { alice_knows_bob } ) #NEWLINE# assert ( list ( record . keys ( ) ) == keys ) #NEWLINE# assert ( list ( record . values ( ) ) == values )