'Make sure we get the overridden Authorization page - not
the default django-oauth-toolkit when we perform a page load'

def test_check_dot_authorization_page_get(self):

    self.client.login(username=self.user.username, password='test')
    response = self.client.get('/oauth2/authorize/', {'client_id': self.dot_app.client_id, 'response_type': 'code', 'state': 'random_state_string', 'redirect_uri': DUMMY_REDIRECT_URL, 'scope': 'profile'}, follow=True)
    self.assertContains(response, settings.OAUTH2_PROVIDER['SCOPES']['profile'])
    self.assertNotContains(response, settings.OAUTH2_PROVIDER['SCOPES']['read'])
    self.assertNotContains(response, settings.OAUTH2_PROVIDER['SCOPES']['write'])
    self.assertNotContains(response, settings.OAUTH2_PROVIDER['SCOPES']['email'])
    self.assertContains(response, 'Authorize    {name}'.format(name=self.dot_app.name))
    self.assertContains(response, '<button    type="submit"    class="btn    btn-authorization-cancel"    name="cancel"/>Cancel</button>')
    self.assertContains(response, '<button    type="submit"    class="btn    btn-authorization-allow"    name="allow"    value="Authorize"/>Allow</button>')
