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