Exemplo n.º 1
0
 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))
 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))
Exemplo n.º 3
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])
Exemplo n.º 4
0
def test_switch():
    from pythonbrew.commands.switch import SwitchCommand
    c = SwitchCommand()
    c.run_command(None, [TESTPY_VERSION])
Exemplo n.º 5
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])