<s> """<STR_LIT>""" <EOL> from openhtf . io . output import json_factory <EOL> from openhtf . util import validators <EOL> from openhtf . names import * <EOL> @ measures ( Measurement ( '<STR_LIT>' ) ) <EOL> def HelloPhase ( test ) : <EOL> test . measurements . hello_world_measurement = '<STR_LIT>' <EOL> @ measures ( '<STR_LIT>' ) <EOL> def AgainPhase ( test ) : <EOL> test . measurements . hello_again_measurement = '<STR_LIT>' <EOL> @ measures ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> @ measures ( Measurement ( '<STR_LIT>' ) , Measurement ( '<STR_LIT>' ) ) <EOL> def LotsOfMeasurements ( test ) : <EOL> test . measurements . first_measurement = '<STR_LIT>' <EOL> test . measurements [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> for measurement in ( '<STR_LIT>' , '<STR_LIT>' ) : <EOL> test . measurements [ measurement ] = measurement + '<STR_LIT>' <EOL> @ measures ( Measurement ( '<STR_LIT>' ) . InRange ( <NUM_LIT:0> , <NUM_LIT:10> ) . Doc ( <EOL> '<STR_LIT>' ) . WithUnits ( UOM [ '<STR_LIT>' ] ) ) <EOL> def MeasureSeconds ( test ) : <EOL> test . measurements . validated_measurement = <NUM_LIT:5> <EOL> @ measures ( '<STR_LIT>' , docstring = '<STR_LIT>' , <EOL> units = UOM [ '<STR_LIT>' ] , validators = [ validators . InRange ( <NUM_LIT:0> , <NUM_LIT:10> ) ] ) <EOL> @ measures ( '<STR_LIT>' , docstring = '<STR_LIT>' ) <EOL> def InlinePhase ( test ) : <EOL> test . measurements . inline_kwargs = <NUM_LIT:15> <EOL> test . measurements . another_inline = '<STR_LIT>' <EOL> test . logger . info ( '<STR_LIT>' ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> test = Test ( HelloPhase , AgainPhase , LotsOfMeasurements , MeasureSeconds , <EOL> InlinePhase ) <EOL> test . AddOutputCallbacks ( <EOL> json_factory . OutputToJSON ( '<STR_LIT>' , indent = <NUM_LIT:2> ) ) <EOL> test . Execute ( test_start = lambda : '<STR_LIT>' ) </s>
