def METHOD_NAME(self):
    with self.assertRaisesRegex(ValueError, "file must be a file handle"):
        result = DocumentUpload.create({
            "kind": braintree.DocumentUpload.Kind.EvidenceDocument,
            "file": None
        })