#NEWLINE# def test_insert_ordered_DFS_backwards_nonroot_nodes( self ) : #NEWLINE# #INDENT# music = OrderedInsertion . objects . create ( name = 'music' ) #NEWLINE# rock = OrderedInsertion . objects . create ( name = 'Rock' , parent = rock ) #NEWLINE# OrderedInsertion . objects . create ( name = 'Led Zeppelin' , parent = rock ) #NEWLINE# OrderedInsertion . objects . create ( name = 'Classical' , parent = music ) #NEWLINE# self . assertTreeEqual ( OrderedInsertion . objects . all ( ) , '\n            1 - 1 0 1 8\n            4 1 1 1 2 3\n            2 1 1 1 4 7\n            3 2 1 2 5 6\n        ' )