def METHOD_NAME(self):
    """
    Test 'force_publish' command with invalid course key
    """
    errstring = "Invalid course key."
    with self.assertRaisesRegex(CommandError, errstring):
        call_command('force_publish', 'TestX/TS01')