def test_get_new_command():
    assert get_new_command(
        Command('grep blah .'), None) == 'grep -r blah .'
Example #2
0
def test_get_new_command():
    assert get_new_command(Command('grep blah .', '')) == 'grep -r blah .'
    assert get_new_command(Command(u'grep café .', '')) == u'grep -r café .'
def test_get_new_command():
    assert get_new_command(Command('grep blah .')) == 'grep -r blah .'
def test_get_new_command():
    assert get_new_command(Command("grep blah .", "")) == "grep -r blah ."
    assert get_new_command(Command(u"grep café .", "")) == u"grep -r café ."