def METHOD_NAME(self):
    self.args.instance_name = 'invalid%@^&%#&'
    with self.assertRaisesRegex(
            ValueError, 'Instance name contains invalid characters.'):
        self.register._run_main(self.args, self.globals)