def test_shortPythonVersion(self):
        """
        Verify if the Python version is returned correctly.
        """
        ver = shortPythonVersion().split('.')
        for i in range(3):
            self.assertEqual(int(ver[i]), sys.version_info[i])

        Verify if the Python version is returned correctly.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_runtime.py