def METHOD_NAME(self):
    result = DocumentUpload.create({
        "kind": "invalid_kind",
        "file": self.png_file
    })
    self.assertEqual(result.errors.for_object("document_upload")[0].code, ErrorCodes.DocumentUpload.KindIsInvalid)