'LTI module attempts to get client key and secret provided in cms.
There are key and secret provided in wrong format.'

def test_bad_client_key_secret(self):

    mocked_course = Mock(lti_passports=['test_id_test_client_test_secret'])
    modulestore = Mock()
    modulestore.get_course.return_value = mocked_course
    runtime = Mock(modulestore=modulestore)
    self.xmodule.descriptor.runtime = runtime
    self.xmodule.lti_id = 'lti_id'
    with self.assertRaises(LTIError):
        self.xmodule.get_client_key_secret()
