def test_switch(self):
     from pythonbrew.commands.switch import SwitchCommand
     from pythonbrew.define import PATH_HOME_ETC_CURRENT
     self._create_dummy('2.7.5')
     eq_(False, os.path.isfile(PATH_HOME_ETC_CURRENT))
     c = SwitchCommand()
     c.run_command(None, ['2.7.5'])
     ok_(os.path.isfile(PATH_HOME_ETC_CURRENT))
Example #2
0
def test_04_switch():
    from pythonbrew.commands.switch import SwitchCommand
    for py_version in TESTPY_VERSION:
        c = SwitchCommand()
        c.run_command(None, [py_version])