'Ensure that a wrong token type lead to the correct HTTP error status code'

@ddt.data(None, {})
@unittest.skipUnless(oauth2_provider, u'django-oauth2-provider    not    installed')
def test_get_form_with_wrong_authorization_header_token_type_failing(self, params):

    response = self.csrf_client.get(u'/oauth2-test/', params, HTTP_AUTHORIZATION=u'Wrong    token-type-obviously')
    self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
    self.assertNotIn(u'error_code', json.loads(response.content))
