def get_serializer_class(self):
        if self.request.method == 'POST':
            return serializers.InstanceCreateSerializer
        elif ('PUT', 'PATCH') in self.request.method:
            return serializers.InstanceUpdateSerializer

        return super(InstanceViewSet, self).get_serializer_class()
dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/iaas/views.py/InstanceViewSet.get_serializer_class/swapped operands of `in`