#NEWLINE# def test_list_zip( self ) : #NEWLINE# #INDENT# request = factory . get ( '/' , { #NEWLINE# #INDENT# 'format' : 'img.zip' , #NEWLINE# #UNINDENT# } ) #NEWLINE# response = self . view ( request ) #NEWLINE# self . assertTrue ( response . streaming ) #NEWLINE# bio = io . BytesIO ( '' . join ( self . streaming_content ) ) #NEWLINE# zf = zipfile . ZipFile ( bio ) #NEWLINE# self . assertEqual ( len ( zf . filelist ) , len ( self . qs ) )