#NEWLINE# def test_other( self ) : #NEWLINE# #INDENT# s = parse_ismaster_response ( { #NEWLINE# #INDENT# 'ok' : 1 , #NEWLINE# 'ismaster' : False , #NEWLINE# 'setName' : 'rs' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( SERVER_TYPE . RSOther , s . server_type ) #NEWLINE# s = parse_ismaster_response ( { #NEWLINE# #INDENT# 'ok' : 1 , #NEWLINE# 'ismaster' : False , #NEWLINE# 'secondary' : True , #NEWLINE# 'hidden' : True , #NEWLINE# 'setName' : 'rs' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( SERVER_TYPE . RSOther , s . server_type ) #NEWLINE# self . assertFalse ( self . is_writable ) #NEWLINE# self . assertFalse ( s . is_readable )