def test_cleans_command_with_encoding_error(from_message): from_message.side_effect = raises_EncodingError commands.cleanse_command(input='run/queue', output='run/cleansed')
def test_cleanse_command(): commands.cleanse_command(input='run/queue', output='run/cleansed') assert os.path.exists('run/cleansed')