def test_no_impersonation(self):
        # Create a user who is actively impersonating another user
        user = self.create_user()
        user.impersonating = True

        # Create a request
        request = self.request_factory.get('/')
        request.user = user

        # Instead of testing the dispatch() method directly or creating a
        # django test client that is both logged in and impersonating, we can
        # pass a pre-made request directly into the view.
        with self.assertRaises(PermissionDenied):
            self.view_class.as_view()(request)
Draw a list of lines, black to red if color is True (FIXME),
dataset/ETHPy150Open ofa/connect/open_connect/accounts/tests/test_views.py/UpdateUserPermissionViewTest.test_no_impersonation--crossover with--dataset/ETHPy150Open dnlcrl/PyGraphArt/src/render.py/Render.draw_lines