def METHOD_NAME(self):
    file_path = os.path.join(os.path.dirname(__file__), "..", "fixtures/empty_file.png")
    try:
        f = open(file_path, 'w')
        f.close()
        empty_file = open(file_path, 'rb')
        result = DocumentUpload.create({
            "kind": braintree.DocumentUpload.Kind.EvidenceDocument,
            "file": empty_file
        })
        self.assertEqual(result.errors.for_object("document_upload")[0].code, ErrorCodes.DocumentUpload.FileIsEmpty)
    finally:
        os.remove(file_path)