'Verify logging out with a redirect_url query param redirects the user to the target.'

def assert_logout_redirects_with_target(self):

    url = '{}?{}'.format(reverse('logout'), 'redirect_url=/courses')
    response = self.client.get(url)
    self.assertRedirects(response, '/courses', fetch_redirect_response=False)
