def SetStateFinished(self):
    if any(meas.outcome != measurements.Outcome.PASS
           for phase in self.record.phases
           for meas in phase.measurements.itervalues()):
      self.record.outcome = test_record.Outcome.FAIL
    else:
      self.record.outcome = test_record.Outcome.PASS
Returns string XML of all items in a sequence or nested sequences.
dataset/ETHPy150Open google/openhtf/openhtf/exe/test_state.py/TestState.SetStateFinished--crossover with--dataset/ETHPy150Open google/simian/src/simian/mac/munki/plist.py/SequenceToXml