def test_admin_access_view(self):
        admin_user = self.create_user(password='admintest')
        admin_client = Client()
        admin_client.login(username=admin_user.username, password='admintest')

        unprivlidged_result = admin_client.get(
            reverse('update_user', args=(self.user.uuid,)))
        self.assertEqual(unprivlidged_result.status_code, 404)

        change_user_permission = Permission.objects.get(
            content_type__app_label='accounts', codename='change_user')

        admin_user.user_permissions.add(change_user_permission)

        privlidged_result = admin_client.get(
            reverse('update_user', args=(self.user.uuid,)))
        self.assertEqual(privlidged_result.status_code, 200)
        self.assertContains(privlidged_result, self.user)
Compute unit specific parameters in
dataset/ETHPy150Open ofa/connect/open_connect/accounts/tests/test_views.py/UserUpdateViewTest.test_admin_access_view--crossover with--dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/sandbox/panel/mixed.py/Unit.fit