#NEWLINE# def test_after_before( self , models ) : #NEWLINE# #INDENT# models . parent . append ( models . child1 ) #NEWLINE# models . child1 . after ( models . child2 ) #NEWLINE# assert ( list ( models . parent . children ) == [ models . child1 , models . child2 ] ) #NEWLINE# models . child1 . before ( models . child2 ) #NEWLINE# assert ( list ( models . parent . children ) == [ models . child2 , models . child1 ] )