Exemple #1
0
 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()
Exemple #2
0
 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()
Exemple #3
0
 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)
Exemple #4
0
 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)
Exemple #5
0
 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
Exemple #6
0
 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