#NEWLINE# def ValidResponseProtoSingle( self , proto ) : #NEWLINE# #INDENT# td = testdata . JOB [ 0 ] #NEWLINE# self . assertEqual ( proto . label , td [ 'Label' ] ) #NEWLINE# self . assertEqual ( proto . lastexitstatus , td [ 'LastExitStatus' ] . value ) #NEWLINE# self . assertEqual ( proto . sessiontype , td [ 'LimitLoadToSessionType' ] ) #NEWLINE# self . assertEqual ( len ( proto . machservice ) , len ( td [ 'MachServices' ] ) ) #NEWLINE# self . assertEqual ( proto . ondemand , td [ 'OnDemand' ] . value ) #NEWLINE# self . assertEqual ( len ( proto . args ) , len ( td [ 'ProgramArguments' ] ) ) #NEWLINE# self . assertEqual ( proto . timeout , td [ 'TimeOut' ] . value ) #NEWLINE# return True