#NEWLINE# def test_mongos( self ) : #NEWLINE# #INDENT# s = parse_ismaster_response ( { #NEWLINE# #INDENT# 'ok' : 1 , #NEWLINE# 'msg' : 'isdbgrid' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( SERVER_TYPE . Mongos , s . server_type ) #NEWLINE# self . assertTrue ( s . is_writable ) #NEWLINE# self . assertTrue ( self . is_readable )