def _get_grcode_view_response(self):
        factory = RequestFactory()
        request = factory.get('/')
        request.user = self.user
        response = qrcode(request, self.user.username, self.xform.id_string)

        return response
 def _get_grcode_view_response(self):
     factory = RequestFactory()
     request = factory.get('/')
     request.user = self.user
     response = qrcode(
         request, self.user.username, self.xform.id_string)
     return response