{ "info": { "author": "Universit\u00e9 Nice Sophia Antipolis", "author_email": "pi@unice.fr", "bugtrack_url": null, "classifiers": [ "Framework :: Plone", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License (GPL)" ], "description": ".. contents::\n\n.. Note!\n -----\n Update the following URLs to point to your:\n\n - code repository\n - bug tracker\n - questions/comments feedback mail\n (do not set a real mail, to avoid spams)\n\n Or remove it if not used.\n\n- Code repository: http://svn.somewhere.com/...\n- Questions and comments to somemailing_list\n- Report bugs at http://bug.somewhere.com/..\n\n\nChange history\n**************\n\nChangelog\n=========\n\n1.0 (xxxx-xx-xx)\n----------------\n\n- Created recipe with ZopeSkel\n [\"\"]\n\nDetailed Documentation\n**********************\n\nIntroduction\n============\n\nThis is a full-blown functional test. The emphasis here is on testing what\nthe user may input and see, and the system is largely tested as a black box.\nWe use PloneTestCase to set up this test as well, so we have a full Plone site\nto play with. We *can* inspect the state of the portal, e.g. using \nself.portal and self.folder, but it is often frowned upon since you are not\ntreating the system as a black box. Also, if you, for example, log in or set\nroles using calls like self.setRoles(), these are not reflected in the test\nbrowser, which runs as a separate session.\n\nBeing a doctest, we can tell a story here.\n\nFirst, we must perform some setup. We use the testbrowser that is shipped\nwith Five, as this provides proper Zope 2 integration. Most of the \ndocumentation, though, is in the underlying zope.testbrower package.\n\n >>> from Products.Five.testbrowser import Browser\n >>> browser = Browser()\n >>> portal_url = self.portal.absolute_url()\n\nThe following is useful when writing and debugging testbrowser tests. It lets\nus see all error messages in the error_log.\n\n >>> self.portal.error_log._ignored_exceptions = ()\n\nWith that in place, we can go to the portal front page and log in. We will\ndo this using the default user from PloneTestCase:\n\n >>> from Products.PloneTestCase.setup import portal_owner, default_password\n\nBecause add-on themes or products may remove or hide the login portlet, this test will use the login form that comes with plone. \n\n >>> browser.open(portal_url + '/login_form')\n >>> browser.getControl(name='__ac_name').value = portal_owner\n >>> browser.getControl(name='__ac_password').value = default_password\n >>> browser.getControl(name='submit').click()\n\nHere, we set the value of the fields on the login form and then simulate a\nsubmit click. We then ensure that we get the friendly logged-in message:\n\n >>> \"You are now logged in\" in browser.contents\n True\n\nFinally, let's return to the front page of our site before continuing\n\n >>> browser.open(portal_url)\n\n-*- extra stuff goes here -*-\n\n\nContributors\n************\n\n\"\", Author\n\n\nDownload\n********", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://svn.plone.org/svn/collective/", "keywords": "", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "unice.mosaique", "package_url": "https://pypi.org/project/unice.mosaique/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/unice.mosaique/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://svn.plone.org/svn/collective/" }, "release_url": "https://pypi.org/project/unice.mosaique/1.0/", "requires_dist": null, "requires_python": null, "summary": "Affichage des elements d'un dossier sous forme de mosaique", "version": "1.0" }, "last_serial": 912585, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "e7c2f8175408abb150eeb4135236a8cf", "sha256": "a47b9630dcae1bf6739a0dd9090f759bf5a1a0d45e44e19a904b05bd836442ed" }, "downloads": -1, "filename": "unice.mosaique-1.0.tar.gz", "has_sig": false, "md5_digest": "e7c2f8175408abb150eeb4135236a8cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12991, "upload_time": "2013-11-06T14:16:32", "url": "https://files.pythonhosted.org/packages/27/fd/0898a3244759901261a21ae0e35a1aa687167858c10389021e94de16f03c/unice.mosaique-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e7c2f8175408abb150eeb4135236a8cf", "sha256": "a47b9630dcae1bf6739a0dd9090f759bf5a1a0d45e44e19a904b05bd836442ed" }, "downloads": -1, "filename": "unice.mosaique-1.0.tar.gz", "has_sig": false, "md5_digest": "e7c2f8175408abb150eeb4135236a8cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12991, "upload_time": "2013-11-06T14:16:32", "url": "https://files.pythonhosted.org/packages/27/fd/0898a3244759901261a21ae0e35a1aa687167858c10389021e94de16f03c/unice.mosaique-1.0.tar.gz" } ] }