@@ -0,0 +1,874 @@
+import pytest%0Afrom thefuck.rules.no_such_file import match, get_new_command%0Afrom tests.utils import Command%0A%0A%0A@pytest.mark.parametrize('command', %5B%0A    Command(script='mv foo bar/foo', stderr=%22mv: cannot move 'foo' to 'bar/foo': No such file or directory%22),%0A    Command(script='mv foo bar/', stderr=%22mv: cannot move 'foo' to 'bar/': No such file or directory%22),%0A    %5D)%0Adef test_match(command):%0A    assert match(command, None)%0A%0A%0A@pytest.mark.parametrize('command, new_command', %5B%0A    (Command(script='mv foo bar/foo', stderr=%22mv: cannot move 'foo' to 'bar/foo': No such file or directory%22), 'mkdir -p bar && mv foo bar/foo'),%0A    (Command(script='mv foo bar/', stderr=%22mv: cannot move 'foo' to 'bar/': No such file or directory%22), 'mkdir -p bar && mv foo bar/'),%0A    %5D)%0Adef test_get_new_command(command, new_command):%0A    assert get_new_command(command, None) == new_command%0A

Add tests for the `no_such_file` rule