#NEWLINE# def test_logout( self ) : #NEWLINE# #INDENT# self . ttr . logout ( ) #NEWLINE# r = self . ttr . logged_in ( ) #NEWLINE# self . assertFalse ( r ) #NEWLINE# r = self . ttr . _get_json ( { #NEWLINE# #INDENT# 'op' : 'isLoggedIn' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertIsInstance ( r , dict ) #NEWLINE# self . assertFalse ( self [ 'status' ] ) #NEWLINE# self . assertRaises ( TTRNotLoggedIn , self . ttr . _get_json , { #NEWLINE# #INDENT# 'op' : 'getVersion' , #NEWLINE# #UNINDENT# } )