Beispiel #1
0
def test_which_non_existing_app():
    """Test for a non existing app."""
    assert utils.which('hypothetical_app') == None
Beispiel #2
0
def test_which_null_arg():
    """Test for a null string param (raises a ValueError)."""
    utils.which('')
Beispiel #3
0
def test_which_existing_app():
    """Test for an existing app."""
    assert utils.which('ls') == '/bin/ls' # Depends on your system