#NEWLINE# def test__deploy_zapp_without_index_html( self ) : #NEWLINE# #INDENT# with mock . patch ( 'zpmlib.zpm._generate_uploads' ) as gu : #NEWLINE# #INDENT# gu . return_value = iter ( [ ( 'cont/foo.html' , 'data' , 'text/html' ) ] ) #NEWLINE# index = zpm . _deploy_zapp ( self . conn , 'cont' , None , None ) #NEWLINE# assert ( index == 'cont/' ) #NEWLINE# put_object = self . conn . put_object #NEWLINE# assert ( gu . call_count == 1 ) #NEWLINE# assert ( put_object . call_args_list == [ mock . call ( 'cont' , 'foo.html' , 'data' , content_type = 'text/html' ) ] )