Ejemplo n.º 1
0
def test_command_get_output_error():
    cmd = Command('false', 1, Mock())
    assert cmd._get_output()[0].startswith("Error running 'false'")
Ejemplo n.º 2
0
def test_command_get_output():
    cmd = Command('echo "test"', 1, Mock())
    eq_(("test\n", True), cmd._get_output())