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)
def test_match(is_not_task): assert match(Command('lein rpl', is_not_task)) assert not match(Command('ls', is_not_task))
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)
def test_match(is_not_task): assert match(Command("lein rpl", is_not_task)) assert not match(Command("ls", is_not_task))
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))