#NEWLINE# def test_add_constraints( self ) : #NEWLINE# #INDENT# conn = self . _get_mock_connection ( ) #NEWLINE# conn . client . addConstraint = Mock ( return_value = True ) #NEWLINE# ret_val = conn . add_constraint ( 'mytable' , 'org.apache.accumulo.examples.simple.constraints.MaxMutationSize' ) #NEWLINE# conn . client . addConstraint . assert_called_with ( 'Login' , 'mytable' , 'org.apache.accumulo.examples.simple.constraints.MaxMutationSize' ) #NEWLINE# self . assertTrue ( ret_val )