(release='2')
Test that the tarball can be unpacked and installed, and that sympy
    imports in the install.
Test that the tarball can be unpacked and installed, and that sympy
    imports in the install.
Test that the tarball can be unpacked and installed and that sympy imports in the install .
def test_tarball(release='2'):
    """
    Test that the tarball can be unpacked and installed, and that sympy
    imports in the install.
    """
    if release not in {'2', '3'}: # TODO: Add win32
        raise ValueError("release must be one of '2', '3', not %s" % release)

    venv = "/home/vagrant/repos/test-{release}-virtualenv".format(release=release)
    tarball_formatter_dict = tarball_formatter()

    with use_venv(release):
        make_virtualenv(venv)
        with virtualenv(venv):
            run("cp /vagrant/release/{source} releasetar.tar".format(**tarball_formatter_dict))
            run("tar xvf releasetar.tar")
            with cd("/home/vagrant/{source-orig-notar}".format(**tarball_formatter_dict)):
                run("python setup.py install")
                run('python -c "import sympy; print(sympy.__version__)"')
def test_tarball ( release = '2' ) : if release not in { '2' , '3' } : # TODO: Add win32 raise ValueError ( "release must be one of '2', '3', not %s" % release ) venv = "/home/vagrant/repos/test-{release}-virtualenv" . format ( release = release ) tarball_formatter_dict = tarball_formatter ( ) with use_venv ( release ) : make_virtualenv ( venv ) with virtualenv ( venv ) : run ( "cp /vagrant/release/{source} releasetar.tar" . format ( * * tarball_formatter_dict ) ) run ( "tar xvf releasetar.tar" ) with cd ( "/home/vagrant/{source-orig-notar}" . format ( * * tarball_formatter_dict ) ) : run ( "python setup.py install" ) run ( 'python -c "import sympy; print(sympy.__version__)"' )