def test_match():
    assert match(Command("git branch list", ""))
def test_not_match():
    assert not match(Command())
    assert not match(Command('git commit'))
    assert not match(Command('git branch'))
    assert not match(Command('git stash list'))
def test_not_match():
    assert not match(Command("", ""))
    assert not match(Command("git commit", ""))
    assert not match(Command("git branch", ""))
    assert not match(Command("git stash list", ""))
def test_match():
    assert match(Command('git branch list'))
Example #5
0
def test_not_match():
    assert not match(Command(), None)
    assert not match(Command('git commit'), None)
    assert not match(Command('git branch'), None)
    assert not match(Command('git stash list'), None)
Example #6
0
def test_match():
    assert match(Command('git branch list'), None)
Example #7
0
def test_not_match():
    assert not match(Command('', ''))
    assert not match(Command('git commit', ''))
    assert not match(Command('git branch', ''))
    assert not match(Command('git stash list', ''))
Example #8
0
def test_match():
    assert match(Command('git branch list', ''))