'Test the error cases for the "dispatch" argument to the LTI 2.0 handler.  Anything that doesn\'t
fit the form user/<anon_id>'

def test_lti20_rest_bad_dispatch(self):

    for einput in self.BAD_DISPATCH_INPUTS:
        with self.assertRaisesRegexp(LTIError, 'No    valid    user    id    found    in    endpoint    URL'):
            self.xmodule.parse_lti_2_0_handler_suffix(einput)
