#NEWLINE# def test_chunked_incomplete( ) : #NEWLINE# #INDENT# full_data = 'af\r\n' #NEWLINE# full_data += ( 'A' * 175 ) #NEWLINE# full_data += '\r\n' #NEWLINE# full_data += '0' #NEWLINE# for i in range ( ( len ( full_data ) - 1 ) ) : #NEWLINE# #INDENT# c = http . ChunkedData ( ) #NEWLINE# c . add_data ( full_data [ : i ] ) #NEWLINE# assert ( not i . complete ) #NEWLINE# #UNINDENT# full_data = 'af\r\n' #NEWLINE# full_data += ( 'A' * 175 ) #NEWLINE# full_data += '\r\n' #NEWLINE# full_data += '0' #NEWLINE# for i in range ( ( len ( full_data ) - 1 ) ) : #NEWLINE# #INDENT# c = http . ChunkedData ( ) #NEWLINE# for ii in range ( i ) : #NEWLINE# #INDENT# c . add_data ( full_data [ ii ] ) #NEWLINE# #UNINDENT# assert ( not c . complete )