'Test for when a course key is malformed'

def test_invalid_key_not_found(self):

    errstring = "Invalid    course_key:    'foo/TestX/TS01/2015_Q7'."
    with self.assertRaisesRegexp(CommandError, errstring):
        call_command('delete_course', 'foo/TestX/TS01/2015_Q7')
