def test_build_related_resource(self):
        gfk_field = GenericForeignKeyField({
            Note: NoteResource,
            Quote: QuoteResource
        }, 'nofield')

        quote_1 = Quote.objects.create(
            byline='Issac Kelly',
            content='To ipsum or not to ipsum, that is the cliche'
        )
        qr = QuoteResource()
        qr.build_bundle(obj=quote_1)

        bundle = gfk_field.build_related_resource(
            quote_1.pk % '/api/v1/quotes/%s/'
        )

        # Test that the GFK field builds the same as the QuoteResource
        self.assertEqual(bundle.obj, quote_1)
dataset/ETHPy150Open django-tastypie/django-tastypie/tests/content_gfk/tests/fields.py/ContentTypeFieldTestCase.test_build_related_resource/swapped operands of `%`