def reset(self): '''Reset values of attributes in order to perform multiple exec''' BaseEntity.reset(self) self.origin = False self._last_action = None for action in self._actions.values(): action.reset()
def reset(self): """Reset values of attributes in order to perform multiple exec""" BaseEntity.reset(self) self.origin = False self._last_action = None for action in self._actions.values(): action.reset()
def test_reset_entity(self): '''Test reset entity''' ent = BaseEntity(name='foo', target='fortoy5') ent.status = NO_STATUS ent.algo_reverse = True ent.reset() self.assertEqual(ent._algo_reversed, False) self.assertEqual(ent.status, NO_STATUS)
def reset(self): ''' Reset values of attributes in order to used the action multiple time. ''' BaseEntity.reset(self) self.start_time = None self.stop_time = None self.worker = None self.tries = 0