Example #1
0
def test_not_match(script, output):
    assert not match(Command(script, output))
def test_not_match(script, stderr):
    assert not match(Command(script, stderr=stderr), None)
Example #3
0
def test_match(cmd):
    assert match(Command('heroku {}'.format(cmd), suggest_output))
def test_match(cmd):
    assert match(
        Command('heroku {}'.format(cmd), stderr=suggest_stderr(cmd)), None)
def test_not_match(script, output):
    assert not match(Command(script, output))
def test_match(cmd):
    assert match(
        Command('heroku {}'.format(cmd), suggest_output))
def test_not_match(script, stderr):
    assert not match(Command(script, stderr=stderr))
def test_match(cmd):
    assert match(Command('heroku {}'.format(cmd), stderr=suggest_stderr))