def validate_max_size(result, max_file_size=UPLOAD_MAX_FILE_SIZE):
    if result.size > max_file_size:
        result.error_msg = 'max_file_size'
        return False
    return True
For necessary clean up, automatically called by TestCase after the test methods have been invoked
dataset/ETHPy150Open gregorynicholas/flask-gae_blobstore/flask_gae_blobstore.py/validate_max_size--crossover with--dataset/ETHPy150Open enthought/mayavi/mayavi/tests/test_optional_collection.py/TestOptionalCollection.tearDown