'Middleware should do nothing when a user has no profile'

def test_without_profile(self):

    Profile.objects.get(pk=1).delete()
    user = User.objects.get(pk=1)
    self.assertFalse(has_profile(user))
    req = self._get_request_with_user(user)
    UserenaLocaleMiddleware().process_request(req)
    self.assertFalse(hasattr(req, 'LANGUAGE_CODE'))
