def test_get_without_group(self, mock_get_context_data):
     """
     Requesting TempLanguage - Admin without the right group should return redirect
     """
     self.request.user.groups.remove(self.group)
     response = TempLanguageAdminView.as_view()(self.request)
     self.assertEqual(response.status_code, 302)
 def test_get_with_user_and_group(self, mock_get_context_data):
     """
     Requesting TempLanguage - Admin should return successful response
     """
     response = TempLanguageAdminView.as_view()(self.request)
     self.assertEqual(response.status_code, 200)