#NEWLINE# def test_ok_false( self ) : #NEWLINE# #INDENT# s = parse_ismaster_response ( { #NEWLINE# #INDENT# 'ok' : 0 , #NEWLINE# 'ismaster' : True , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( SERVER_TYPE . Unknown , s . server_type ) #NEWLINE# self . assertFalse ( self . is_writable ) #NEWLINE# self . assertFalse ( s . is_readable )