'If a user has no module perms, the app list returns a 404.'

def test_app_list_permissions(self):

    opts = Article._meta
    change_user = User.objects.get(username='changeuser')
    permission = get_perm(Article, get_permission_codename('change', opts))
    self.client.force_login(self.changeuser)
    change_user.user_permissions.remove(permission)
    response = self.client.get(reverse('admin:app_list', args=('admin_views',)))
    self.assertEqual(response.status_code, 404)
    change_user.user_permissions.add(permission)
    response = self.client.get(reverse('admin:app_list', args=('admin_views',)))
    self.assertEqual(response.status_code, 200)
