#NEWLINE# def test_existing_document_with_has_and_belongs_to_many_field( self ) : #NEWLINE# #INDENT# a = self . Artist ( ) #NEWLINE# a . save ( ) #NEWLINE# t1 = self . Taste ( ) #NEWLINE# t1 . save ( ) #NEWLINE# t2 = self . Taste ( ) #NEWLINE# t2 . save ( ) #NEWLINE# a [ 'tastes' ] = [ t1 , a ]