<s> from thefuck . rules . systemctl import match , get_new_command <EOL> from tests . utils import Command <EOL> def test_match ( ) : <EOL> assert match ( Command ( '<STR_LIT>' , stderr = '<STR_LIT>' ) ) <EOL> assert match ( Command ( '<STR_LIT>' , stderr = '<STR_LIT>' ) ) <EOL> assert not match ( Command ( '<STR_LIT>' ) ) <EOL> assert not match ( Command ( '<STR_LIT>' ) ) <EOL> assert not match ( Command ( '<STR_LIT>' , stderr = '<STR_LIT>' ) ) <EOL> assert not match ( Command ( '<STR_LIT>' , stderr = '<STR_LIT>' ) ) <EOL> assert not match ( Command ( '<STR_LIT>' , stderr = '<STR_LIT>' ) ) <EOL> def test_get_new_command ( ) : <EOL> assert get_new_command ( Command ( '<STR_LIT>' ) ) == "<STR_LIT>" <EOL> assert get_new_command ( Command ( '<STR_LIT>' ) ) == "<STR_LIT>" </s>
