'Request Authorization header has no value.
This is an unknown service request, i.e., it is not a part of the original service specification.'

@patch('xmodule.lti_module.LTIModule.get_client_key_secret', return_value=('test_client_key', u'test_client_secret'))
def test_authorization_header_empty(self, _get_key_secret):

    request = Request(self.environ)
    request.authorization = 'bad    authorization    header'
    request.body = self.get_request_body()
    response = self.xmodule.grade_handler(request, '')
    real_response = self.get_response_values(response)
    expected_response = {'action': None, 'code_major': 'failure', 'description': 'OAuth    verification    error:    Malformed    authorization    header', 'messageIdentifier': self.defaults['messageIdentifier']}
    self.assertEqual(response.status_code, 200)
    self.assertDictEqual(expected_response, real_response)
