def test_not_match(script):
    assert not match(Command(script, ''))
def test_match():
    command = Command('brew update thefuck', output)
    assert match(command)
def test_match(output, script):
    assert match(Command(script, output))
def test_not_match(script):
    assert not match(Command(script, ''))
Exemplo n.º 5
0
def test_not_match(script):
    assert not match(Command(script=script, stderr=''))
Exemplo n.º 6
0
def test_match(stderr, script):
    assert match(Command(script=script, stderr=stderr))
Exemplo n.º 7
0
def test_match():
    command = Command('brew update thefuck', output)
    assert match(command)
Exemplo n.º 8
0
def test_not_match(script):
    assert not match(Command(script=script, stderr=''))
Exemplo n.º 9
0
def test_match(stderr, script):
    assert match(Command(script=script, stderr=stderr))