コード例 #1
0
def test_match(is_not_task):
    assert match(Mock(script='lein rpl', stderr=is_not_task), None)
    assert not match(Mock(script='ls', stderr=is_not_task), None)
コード例 #2
0
def test_match(is_not_task):
    assert match(Command('lein rpl', is_not_task))
    assert not match(Command('ls', is_not_task))
コード例 #3
0
ファイル: test_lein_not_task.py プロジェクト: tgunr/tryagain
def test_match(is_not_task):
    assert match(Command('lein rpl', is_not_task))
    assert not match(Command('ls', is_not_task))
コード例 #4
0
ファイル: test_lein_not_task.py プロジェクト: ngphat/thefuck
def test_match(is_not_task):
    assert match(Mock(script="lein rpl", stderr=is_not_task), None)
    assert not match(Mock(script="ls", stderr=is_not_task), None)
コード例 #5
0
def test_match(is_not_task):
    assert match(Command("lein rpl", is_not_task))
    assert not match(Command("ls", is_not_task))
コード例 #6
0
def test_match(is_not_task):
    assert match(Command(script='lein rpl', stderr=is_not_task))
    assert not match(Command(script='ls', stderr=is_not_task))