#NEWLINE# def test_add_method( self ) : #NEWLINE# #INDENT# self . john . relationships . add ( self . walrus ) #NEWLINE# rel = self . john . relationships . all ( ) #NEWLINE# self . assertQuerysetEqual ( rel , [ self . walrus , self . paul , self . yoko ] ) #NEWLINE# rel = self . john . related_to . all ( ) #NEWLINE# self . assertQuerysetEqual ( rel , [ self . paul , self . yoko ] ) #NEWLINE# rel = self . walrus . relationships . all ( ) #NEWLINE# self . assertQuerysetEqual ( rel , [ ] ) #NEWLINE# rel = self . walrus . related_to . all ( ) #NEWLINE# self . assertQuerysetEqual ( rel , [ self . john ] ) #NEWLINE# self . john . relationships . add ( self . walrus ) #NEWLINE# rel = self . john . relationships . all ( ) #NEWLINE# self . assertQuerysetEqual ( rel , [ self . walrus , self . paul , self . yoko ] )