#NEWLINE# def test_set_sriov_numvfs_failed_negative_value( self ) : #NEWLINE# #INDENT# self . nics [ 0 ] [ 'interface_properties' ] [ 'sriov' ] [ 'sriov_numvfs' ] = ( - 40 ) #NEWLINE# resp = self . app . put ( reverse ( 'NodeNICsHandler' , kwargs = { #NEWLINE# #INDENT# 'node_id' : self . env . nodes [ 0 ] . id , #NEWLINE# #UNINDENT# } ) , jsonutils . dumps ( self . nics ) , expect_errors = True , headers = self . default_headers ) #NEWLINE# self . assertEqual ( resp . status_code , 400 ) #NEWLINE# self . assertIn ( '-40 is not valid under any of the given schemas' , resp . json_body [ 'message' ] )