#NEWLINE# def test_measmodestmt_conversion( ) : #NEWLINE# #INDENT# line = 'M72' #NEWLINE# stmt = MeasuringModeStmt . from_excellon ( line ) #NEWLINE# assert_equal ( stmt . units , 'inch' ) #NEWLINE# stmt . to_metric ( ) #NEWLINE# assert_equal ( stmt . units , 'metric' ) #NEWLINE# line = 'M71' #NEWLINE# stmt = MeasuringModeStmt . from_excellon ( line ) #NEWLINE# assert_equal ( stmt . units , 'metric' ) #NEWLINE# stmt . to_inch ( ) #NEWLINE# assert_equal ( stmt . units , 'inch' )