def METHOD_NAME(self):
    output = StringIO()
    call_command(
        "createapplication",
        "confidential",
        "authorization-code",
        "--redirect-uris=http://example.com http://example2.com",
        "--user=783",
        stdout=output,
    )
    self.assertIn("user", output.getvalue())
    self.assertIn("783", output.getvalue())
    self.assertIn("does not exist", output.getvalue())