#NEWLINE# def test_add_mutations_and_flush( self ) : #NEWLINE# #INDENT# conn = self . _get_mock_connection ( ) #NEWLINE# conn . client . updateAndFlush = Mock ( ) #NEWLINE# muts = [ Mutation ( 'aabb' ) , Mutation ( 'bbaa' ) ] #NEWLINE# conn . add_mutations_and_flush ( 'mytable' , muts ) #NEWLINE# conn . client . updateAndFlush . assert_called_with ( 'Login' , 'mytable' , { #NEWLINE# #INDENT# 'aabb' : [ ] , #NEWLINE# 'bbaa' : [ ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# conn . add_mutations_and_flush ( 'mytable' , Mutation ( 'ccdd' ) ) #NEWLINE# conn . client . updateAndFlush . assert_called_with ( 'Login' , 'mytable' , { #NEWLINE# #INDENT# 'ccdd' : [ ] , #NEWLINE# #UNINDENT# } )