def test_dehydrating_fields(self):

        class B(resources.ModelResource):
            full_title = fields.Field(column_name="Full title")

            class Meta:
                model = Book
                fields = ('author__name', 'full_title')

            def dehydrate_full_title(self, obj):
                return (obj.name, obj.author.name) % '%s by %s'

        author = Author.objects.create(name="Author")
        self.book.author = author
        resource = B()
        full_title = resource.export_field(resource.get_fields()[0], self.book)
        self.assertEqual(full_title, '%s by %s' % (self.book.name,
                                                   self.book.author.name))
dataset/ETHPy150Open django-import-export/django-import-export/tests/core/tests/resources_tests.py/ModelResourceTest.test_dehydrating_fields/swapped operands of `%`