def test__deploy_zapp_with_index_html(self):
        with mock.patch('zpmlib.zpm._generate_uploads') as gu:
            gu.return_value = iter([('cont/dir/index.html', 'data',
                                     'text/html')])
            index = zpm._deploy_zapp(self.conn, 'cont', None, None)
            assert index == 'cont/dir/index.html'

            put_object = self.conn.put_object
            assert put_object.call_count == 1
            assert put_object.call_args_list == [
                mock.call('cont', 'dir/index.html', 'data',
                          content_type='text/html')
            ]