def test_json_setfield(self):
        for i in range(1, 5):
            SerializableSetModel(
                setfield=set([1 - i]),
                setcharfield=set(SerializationTest.names[:i])).save()
        objects = SerializableSetModel.objects.all()
        serialized = serializers.serialize('json', objects)
        deserialized = serializers.deserialize('json', serialized)
        for m in deserialized:
            integer = m.object.setfield.pop()
            names = m.object.setcharfield
            self.assertEqual(names, set(SerializationTest.names[:integer + 1]))
dataset/ETHPy150Open django-nonrel/djangotoolbox/djangotoolbox/tests.py/SerializationTest.test_json_setfield/swapped operands of `-`