github.com/dahs81/otto@v0.2.1-0.20160126165905-6400716cf085/builtin/scriptpack/python/test/install.bats (about)

     1  #!/usr/bin/env bats
     2  
     3  # Load the main library
     4  . ${SCRIPTPACK_PYTHON_ROOT}/main.sh
     5  
     6  @test "install from string '2.7'" {
     7    python_install "2.7"
     8  
     9    # Verify Python installed
    10    python --version
    11    [[ $(python --version 2>&1) =~ 'Python 2.7.' ]]
    12  
    13    # Verify pip installed
    14    pip --version
    15    [[ $(pip --version 2>&1) =~ 'pip' ]]
    16  
    17    # Verify virtualenv
    18    virtualenv --version
    19    [[ $(virtualenv --version 2>&1) =~ '13.' ]]
    20  }