'Logout with next_page option given redirects to specified resource'

def test_logout_with_next_page_specified(self):

    self.login()
    response = self.client.get('/logout/next_page/')
    self.assertEqual(response.status_code, 302)
    self.assertTrue(response['Location'].endswith('/somewhere/'))
    self.confirm_logged_out()
