(self)
Returns movement group of a builder which was responsible for generating tested_property
Returns movement group of a builder which was responsible for generating tested_property
Returns movement group of a builder which was responsible for generating tested_property
def getMovementGroup(self):
    """Returns movement group of a builder which was responsible for generating tested_property"""
    divergence_scope = getattr(self, 'divergence_scope', None)
    if divergence_scope is None:
      return []
    tested_property = getattr(self, 'tested_property', None)
    delivery = self.simulation_movement.getDeliveryValue().getParentValue()
    # XXX: assumes one builder used in delivery, will use BPM in future
    for builder in delivery.getBuilderList():
      for movement_group in builder.getMovementGroupList():
        if movement_group.getDivergenceScope() == divergence_scope:
          if tested_property is None or \
             tested_property in movement_group.getTestedPropertyList():
            return movement_group
def getMovementGroup ( self ) : divergence_scope = getattr ( self , 'divergence_scope' , None ) if divergence_scope is None : return [ ] tested_property = getattr ( self , 'tested_property' , None ) delivery = self . simulation_movement . getDeliveryValue ( ) . getParentValue ( ) # XXX: assumes one builder used in delivery, will use BPM in future for builder in delivery . getBuilderList ( ) : for movement_group in builder . getMovementGroupList ( ) : if movement_group . getDivergenceScope ( ) == divergence_scope : if tested_property is None or tested_property in movement_group . getTestedPropertyList ( ) : return movement_group