{ "info": { "author": "Roger Ineichen, Projekt01 GmbH", "author_email": "dev@projekt01.ch", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Zope3", "Intended Audience :: Developers", "License :: OSI Approved :: Zope Public License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP" ], "description": "This package provides a neo4j server stub setup based on a real neo4j server.\n\n\n.. contents::\n\n======\nREADME\n======\n\nsetup\n-----\n\nThis test is using a neo4j server. The test setUp method used for this\ntest is calling our startNeo4jServer method which is starting a neo4j\nserver. The first time this test get called a new neo4j server will get\ndownloaded. The test setup looks like::\n\n def test_suite():\n return unittest.TestSuite((\n doctest.DocFileSuite('README.txt',\n setUp=testing.doctestSetUp, tearDown=testing.doctestTearDown,\n optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS,\n encoding='utf-8'),\n ))\n\nYour setup with a custom conf folder could look like::\n\n def mySetUp(test):\n # setup neo4j server\n here = os.path.dirname(__file__)\n sandbox = os.path.join(here, 'sandbox')\n confSource = os.path.join(here, 'conf')\n startNeo4jServer(sandbox, confSource=confSource)\n \n \n def myTearDown(test):\n # tear down neo4j server\n here = os.path.dirname(__file__)\n sandbox = os.path.join(here, 'sandbox')\n stopNeo4jServer(sandbox)\n # do some custom teardown stuff here\n\nAlso see our test.py for a sample setup.\n\n\nwindows\n-------\n\nOn windows a service with the name p01_neo4jstub_testing get installed and\nremoved during the test run. This is not nice but that's how neo4j can get\nstopped after starting. If soemthing fails and the service dosn't get removed,\nyou can simply use the follwoingcommand for remove the service:\n\n sc delete p01_neo4jstub_testing\n\n\ntesting\n-------\n\nLet's setup a python httplib connection:\n\n >>> import httplib\n >>> conn = httplib.HTTPConnection('localhost', 47474)\n\nand test the cluster state:\n\n >>> conn.request('GET', '/db/data')\n >>> response = conn.getresponse()\n >>> response.status\n 302\n\n\n=======\nCHANGES\n=======\n\n0.5.0 (28-06-2013)\n------------------\n\n- initial release", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/p01.neo4jstub", "keywords": "Zope3 z3c p01 neo4j server stub setup", "license": "ZPL 2.1", "maintainer": null, "maintainer_email": null, "name": "p01.neo4jstub", "package_url": "https://pypi.org/project/p01.neo4jstub/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/p01.neo4jstub/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/p01.neo4jstub" }, "release_url": "https://pypi.org/project/p01.neo4jstub/0.5.0/", "requires_dist": null, "requires_python": null, "summary": "Neo4j server stub setup", "version": "0.5.0" }, "last_serial": 782063, "releases": { "0.5.0": [ { "comment_text": "", "digests": { "md5": "28c91a30db3129ce05cfa417934ba25a", "sha256": "1fb05fff34f872ca5ca259b582eb5061a467b12c63250f347792023aa2bd01ac" }, "downloads": -1, "filename": "p01.neo4jstub-0.5.0.zip", "has_sig": false, "md5_digest": "28c91a30db3129ce05cfa417934ba25a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22152, "upload_time": "2013-06-28T15:01:54", "url": "https://files.pythonhosted.org/packages/dc/33/465e5f33f55597a7223128474c8a42ae08cd4af606817ea16156be1991f5/p01.neo4jstub-0.5.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "28c91a30db3129ce05cfa417934ba25a", "sha256": "1fb05fff34f872ca5ca259b582eb5061a467b12c63250f347792023aa2bd01ac" }, "downloads": -1, "filename": "p01.neo4jstub-0.5.0.zip", "has_sig": false, "md5_digest": "28c91a30db3129ce05cfa417934ba25a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22152, "upload_time": "2013-06-28T15:01:54", "url": "https://files.pythonhosted.org/packages/dc/33/465e5f33f55597a7223128474c8a42ae08cd4af606817ea16156be1991f5/p01.neo4jstub-0.5.0.zip" } ] }