def test_use(self): from pythonbrew.commands.use import UseCommand from pythonbrew.define import PATH_HOME_ETC_TEMP self._create_dummy('2.7.5') eq_(False, os.path.isfile(PATH_HOME_ETC_TEMP)) c = UseCommand() c.run_command(None, ['2.7.5']) ok_(os.path.isfile(PATH_HOME_ETC_TEMP))
def test_05_use(): from pythonbrew.commands.use import UseCommand for py_version in TESTPY_VERSION: c = UseCommand() c.run_command(None, [py_version])