def METHOD_NAME(self):
    file_path = os.path.join(os.path.dirname(__file__), "..", "fixtures/too_long.pdf")
    too_long_pdf = open(file_path, "rb")
    result = DocumentUpload.create({
        "kind": braintree.DocumentUpload.Kind.EvidenceDocument,
        "file": too_long_pdf
    })
    self.assertEqual(result.errors.for_object("document_upload")[0].code, ErrorCodes.DocumentUpload.FileIsTooLong)