def test_without_profile(self):
        # Delete the profile
        Profile.objects.get(pk=1).delete()
        user = User.objects.get(pk=1)

        # User shouldn't have a profile
        self.assertRaises(ObjectDoesNotExist, user.get_profile)

        req = self._get_request_with_user(user)
        UserenaLocaleMiddleware().process_request(req)

        self.failIf(hasattr(req, 'LANGUAGE_CODE'))
Add data read from the remote device to this object.
dataset/ETHPy150Open clione/django-kanban/src/core/userena/tests/middleware.py/UserenaLocaleMiddlewareTests.test_without_profile--crossover with--dataset/ETHPy150Open mbedmicro/pyOCD/pyOCD/pyDAPAccess/dap_access_usb.py/_Transfer.add_response