def UpdateStep( self, local_config ): # Update step updatestep = local_config.createUpdatestep("UPDATESTEP") self.assertTrue(isinstance(updatestep, LocalUpdateStep)) local_config.installUpdatestep( updatestep ) self.assertEqual( local_config.igetUpdatestep( 0 ) , updatestep ) self.assertEqual( local_config.igetUpdatestep( 4 ) , updatestep )
def AttachMinistep( self, local_config): # Update step updatestep = local_config.createUpdatestep("UPDATESTEP") self.assertTrue(isinstance(updatestep, LocalUpdateStep)) # Ministep ministep = local_config.createMinistep("MINISTEP") self.assertTrue(isinstance(ministep, LocalMinistep)) # Attach updatestep.attachMinistep(ministep) self.assertTrue(isinstance(updatestep[0], LocalMinistep)) self.assertEqual( len(updatestep) , 1 )