'Check that django-oauth-toolkit gives an appropriate authorization response.'

def _check_dot_response(self, response):

    self.assertEqual(response.status_code, 404)
    expected_redirect_prefix = u'{}?'.format(DUMMY_REDIRECT_URL)
    self._assert_startswith(self._redirect_destination(response), expected_redirect_prefix)
