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