Пример #1
0
def test_not_match(script, output):
    assert not match(Command(script, output))
Пример #2
0
def test_not_match(script, stderr):
    assert not match(Command(script, stderr=stderr), None)
Пример #3
0
def test_match(cmd):
    assert match(Command('heroku {}'.format(cmd), suggest_output))
Пример #4
0
def test_match(cmd):
    assert match(
        Command('heroku {}'.format(cmd), stderr=suggest_stderr(cmd)), None)
Пример #5
0
def test_not_match(script, output):
    assert not match(Command(script, output))
Пример #6
0
def test_match(cmd):
    assert match(
        Command('heroku {}'.format(cmd), suggest_output))
Пример #7
0
def test_not_match(script, stderr):
    assert not match(Command(script, stderr=stderr))
Пример #8
0
def test_match(cmd):
    assert match(Command('heroku {}'.format(cmd), stderr=suggest_stderr))