Beispiel #1
0
def test_is_running(local):
    local.expects_call().returns("some non empty string")
    assert vagrant.is_running()
Beispiel #2
0
def test_is_not_running_if_result_is_blank(local):
    local.expects_call().returns("")
    assert not vagrant.is_running()
Beispiel #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()
Beispiel #4
0
def test_is_running(local):
    local.expects_call().returns("some non empty string")
    assert vagrant.is_running()
Beispiel #5
0
def test_is_not_running_if_result_is_blank(local):
    local.expects_call().returns("")
    assert not vagrant.is_running()
Beispiel #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()