コード例 #1
0
ファイル: test_rm_dir.py プロジェクト: ashleygwilliams/oops
def test_match():
    assert match(Command('rm foo', '', 'rm: foo: is a directory'), None)
    assert not match(Command('rm foo', '', ''), None)
    assert not match(Command('rm foo', '', 'foo bar baz'), None)
    assert not match(Command('', '', ''), None)
コード例 #2
0
ファイル: test_rm_dir.py プロジェクト: vladmysiur/konspekt
def test_match(command):
    assert match(command)
コード例 #3
0
ファイル: test_rm_dir.py プロジェクト: vladmysiur/konspekt
def test_not_match(command):
    assert not match(command)
コード例 #4
0
ファイル: test_rm_dir.py プロジェクト: youngdev/thefuck
def test_match(command):
    assert match(command, None)
    assert match(command, None)