def get_obj(self, core=None): if core is None: core = Mock() return TestGroupSpool.get_obj(self, core=core)