<s> import pytest <EOL> from thefuck . rules . cp_omitting_directory import match , get_new_command <EOL> from tests . utils import Command <EOL> @ pytest . mark . parametrize ( '<STR_LIT>' , [ <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , "<STR_LIT>" ) ] ) <EOL> def test_match ( script , stderr ) : <EOL> assert match ( Command ( script , stderr = stderr ) ) <EOL> @ pytest . mark . parametrize ( '<STR_LIT>' , [ <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , "<STR_LIT>" ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) ] ) <EOL> def test_not_match ( script , stderr ) : <EOL> assert not match ( Command ( script , stderr = stderr ) ) <EOL> def test_get_new_command ( ) : <EOL> assert get_new_command ( Command ( script = '<STR_LIT>' ) ) == '<STR_LIT>' </s>
