#NEWLINE# def test_get_or_http_error_by_query_found( self ) : #NEWLINE# #INDENT# n = factories . NodeFactory ( ) #NEWLINE# found = get_or_http_error ( Node , ( Q ( 'title' , 'eq' , n . title ) & Q ( '_id' , 'eq' , n . _id ) ) ) #NEWLINE# assert_equal ( found , n )