#NEWLINE# def test_standalone( self ) : #NEWLINE# #INDENT# s = parse_ismaster_response ( { #NEWLINE# #INDENT# 'ok' : 1 , #NEWLINE# 'ismaster' : True , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( SERVER_TYPE . Standalone , self . server_type ) #NEWLINE# s = parse_ismaster_response ( { #NEWLINE# #INDENT# 'ok' : 1 , #NEWLINE# 'ismaster' : False , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( SERVER_TYPE . Standalone , s . server_type ) #NEWLINE# self . assertTrue ( s . is_writable ) #NEWLINE# self . assertTrue ( s . is_readable )