Exemplo n.º 1
0
def test_is_running(local):
    local.expects_call().returns("some non empty string")
    assert vagrant.is_running()
Exemplo n.º 2
0
def test_is_not_running_if_result_is_blank(local):
    local.expects_call().returns("")
    assert not vagrant.is_running()
Exemplo n.º 3
0
def test_is_running_arguments(local):
    command = "vagrant status | egrep -o 'running$'"
    local.expects_call().with_args(command, capture=True)
    vagrant.is_running()
Exemplo n.º 4
0
def test_is_running(local):
    local.expects_call().returns("some non empty string")
    assert vagrant.is_running()
Exemplo n.º 5
0
def test_is_not_running_if_result_is_blank(local):
    local.expects_call().returns("")
    assert not vagrant.is_running()
Exemplo n.º 6
0
def test_is_running_arguments(local):
    command = "vagrant status | egrep -o 'running$'"
    local.expects_call().with_args(command, capture=True)
    vagrant.is_running()