def METHOD_NAME(self):
    self.globals.region = None
    self.session.get_config_variable.return_value = None
    with self.assertRaisesRegex(RuntimeError, 'Region not specified.'):
        self.register._run_main(self.args, self.globals)