@task
def test_pypi(release='2'):
 version = get_sympy_version()
 release = str(release)
 if (release not in {'2', '3'}):
  raise ValueError(("release must be one of '2', '3', not %s" % release))
 venv = '/home/vagrant/repos/test-{release}-pip-virtualenv'.format(release=release)
 with use_venv(release):
  make_virtualenv(venv)
  with virtualenv(venv):
   run('pip install sympy')
   run('python -c "import sympy; assert sympy.__version__ == \'{version}\'"'.format(version=version))

@ task def test_pypi ( release = '2' ) : version = get_sympy_version ( ) release = str ( release ) if ( release not in { '2' , '3' } ) : raise ValueError ( ( "release must be one of '2', '3', not %s" % release ) ) venv = '/home/vagrant/repos/test-{release}-pip-virtualenv' . format ( release = release ) with use_venv ( release ) : make_virtualenv ( venv ) with virtualenv ( venv ) : run ( 'pip install sympy' ) run ( 'python -c "import sympy; assert sympy.__version__ == \'{version}\'"' . format ( version = version ) )
test that the sympy can be pip installed .