#NEWLINE# def test_client_connection_handling( self ) : #NEWLINE# #INDENT# retries = 5 #NEWLINE# cio = CustomerIO ( site_id = 'siteid' , api_key = 'apikey' , host = self . server . server_address [ 0 ] , port = self . server . server_port , retries = retries ) #NEWLINE# for i in xrange ( retries ) : #NEWLINE# #INDENT# cio . identify ( i , fail_count = i ) #NEWLINE# #UNINDENT# with self . assertRaises ( CustomerIOException ) : #NEWLINE# #INDENT# cio . identify ( retries , fail_count = retries )