def test_version(self):
        """
        L{TwistOptions.opt_version} exits with L{ExitStatus.EX_OK} and prints
        the version.
        """
        self.patchExit()

        options = TwistOptions()
        options.opt_version()

        self.assertEquals(self.exit.status, ExitStatus.EX_OK)
        self.assertEquals(self.exit.message, version)

        L{TwistOptions.opt_version} exits with L{ExitStatus.EX_OK} and prints
        the version.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/application/twist/test/test_options.py