

def test_epilog_setting_old_python(self):
    "We don't set the epilog on old python <= 2.4 versions"
    mock_platform = mock.Mock(platform)
    mock_python_version_tuple = mock.Mock(return_value=('2', '4', '3'))
    mock_platform.python_version_tuple.return_value = mock_python_version_tuple()
    (major, minor, patch) = mock_python_version_tuple.python_version_tuple()
    if ((int(major) == 2) and (int(minor) < 5)):
        py_platform = 'old'
    else:
        py_platform = 'new'
    self.assertEqual(py_platform, 'old')

dataset/ETHPy150Open RHInception/jsonstats/test/test_parser.py TestParser.test_epilog_setting_old_python/VarMisuse@56/115 `mock_platform`->`mock_python_version_tuple`