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