#NEWLINE# def test_timeout( self ) : #NEWLINE# #INDENT# q = N1QLQuery ( 'SELECT foo' ) #NEWLINE# q . timeout = 3.75 #NEWLINE# self . assertEqual ( '3.75s' , q . _body [ 'timeout' ] ) #NEWLINE# self . assertEqual ( 3.75 , q . timeout ) #NEWLINE# def setfn( ) : #NEWLINE# #INDENT# q . timeout = 'blah' #NEWLINE# #UNINDENT# self . assertRaises ( ValueError , setfn ) #NEWLINE# q . timeout = 0 #NEWLINE# self . assertFalse ( ( 'timeout' in q . _body ) )