#NEWLINE# def testValidatePayload( self ) : #NEWLINE# #INDENT# payload = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# with self . assertRaises ( profiles . PayloadValidationError ) : #NEWLINE# #INDENT# profiles . ValidatePayload ( payload ) #NEWLINE# #UNINDENT# payload . update ( { #NEWLINE# #INDENT# profiles . PAYLOADKEYS_IDENTIFIER : 'a' , #NEWLINE# profiles . PAYLOADKEYS_DISPLAYNAME : 'a' , #NEWLINE# profiles . PAYLOADKEYS_TYPE : 'com.apple.welcome.to.1984' , #NEWLINE# #UNINDENT# } ) #NEWLINE# profiles . ValidatePayload ( payload ) #NEWLINE# self . assertEqual ( payload . get ( profiles . PAYLOADKEYS_UUID ) , profiles . GenerateUUID ( 'a' ) ) #NEWLINE# self . assertEqual ( payload . get ( profiles . PAYLOADKEYS_ENABLED ) , True ) #NEWLINE# self . assertEqual ( payload . get ( profiles . PAYLOADKEYS_VERSION ) , 1 )