#NEWLINE# def test_version( self ) : #NEWLINE# #INDENT# version = self . proxy . version ( ) #NEWLINE# self . failUnlessEqual ( self . proxy . connection . calls , 1 ) #NEWLINE# self . failUnlessEqual ( self . proxy . connection . errors , 0 ) #NEWLINE# self . failUnlessEqual ( version [ 'status' ] , 200 ) #NEWLINE# self . failUnless ( isinstance ( self [ 'timestamp' ] , int ) ) #NEWLINE# self . failUnlessEqual ( version [ 'request' ] [ 'type' ] , 'version' ) #NEWLINE# self . failUnless ( version . protocol . startswith ( '6.' ) )