def test_venv(self):
     from pythonbrew.commands.venv import VenvCommand
     from pythonbrew.commands.install import InstallCommand
     o = self.Options({
         'force': True,
         'test': False,
         'verbose': False,
         'configure': "",
         'no_setuptools': False,
         'alias': None,
         'jobs': 2,
         'framework': False,
         'universal': False,
         'static': False
     })
     c = InstallCommand()
     c.run_command(o, ['3.4.3'])
     c = VenvCommand()
     o = self.Options({
         'python': '3.4.3',
         'no_site_packages': False,
         'system_site_packages': False
     })
     c.run_command(o, ['init'])
     c.run_command(o, ['create', 'aaa'])
     c.run_command(o, ['list'])
     c.run_command(o, ['use', 'aaa'])
     c.run_command(o, ['delete', 'aaa'])
Example #2
0
def test_03_install():
    from pythonbrew.commands.install import InstallCommand
    py_version = TESTPY_VERSION.pop(0)
    o = Options({'force':True, 'test':False, 'verbose':False, 'configure':"",
                 'no_setuptools': False, 'alias':None, 'jobs':2, 
                 'framework':False, 'universal':False, 'static':False})
    c = InstallCommand()
    c.run_command(o, [py_version]) # pybrew install -f -j2 2.5.6
    c.run_command(o, TESTPY_VERSION) # pybrew install -f -j2 2.6.6 3.2
 def test_install_3_4_3(self):
     from pythonbrew.commands.install import InstallCommand
     from pythonbrew.util import is_installed
     o = self.Options({
         'force': True,
         'test': False,
         'verbose': False,
         'configure': "",
         'no_setuptools': False,
         'alias': None,
         'jobs': 2,
         'framework': False,
         'universal': False,
         'static': False
     })
     c = InstallCommand()
     c.run_command(o, ['3.4.3'])
     ok_(is_installed('3.4.3'))