def test_process_single_dict(self):
        """Test that process works with a single dict instead of a list."""
        message = MessageFormatOperation(
            message='{{ data.title }}',
        )

        self.assertEquals(
            message.process(FAKE_DICTS[0]),
            't1',
        )
    def test_process_formatted_message(self):
        """Test that process will process the formatted message to the output."""
        message = MessageFormatOperation(
            message='{{ data | map(attribute="title") | join(", ")}}',
        )

        self.assertEquals(
            message.process(FAKE_DICTS),
            't1, t2',
        )