Example #1
0
 def test_connection_cache_debug(self):
     import client as clientCacheDebug
     clientCacheDebug.CACHE = True
     clientCacheDebug.DEBUG = True
     gdb = clientCacheDebug.GraphDatabase(self.url)
     clientCacheDebug.CACHE = False
     clientCacheDebug.DEBUG = False
     self.assertEqual(gdb.url, self.url)
Example #2
0
    def setUpClass(cls):
        cls.url = "http://localhost:7474/db/data/"
        cls.gdb = client.GraphDatabase(cls.url)
        cls.clean_after_test = True

        def cleandb():
            cleandb_url = 'http://localhost:7474/cleandb/supersecretdebugkey!'
            response, content = request.Request().delete(cleandb_url)
            if response.status != 200:
                print "\nTest database couldn't be cleared - have you installed the cleandb extension at https://github.com/jexp/neo4j-clean-remote-db-addon?"
                cls.clean_after_test = False

        cls.gdb.cleandb = cleandb
Example #3
0
 def test_connection_cache(self):
     import client as clientCache
     clientCache.CACHE = True
     gdb = clientCache.GraphDatabase(self.url)
     clientCache.CACHE = False
     self.assertEqual(gdb.url, self.url)
Example #4
0
 def setUp(self):
     self.url = "http://localhost:7474/db/data/"
     self.gdb = client.GraphDatabase(self.url)
Example #5
0
 def test_connection_debug(self):
     import request as clientDebug
     clientDebug.DEBUG = True
     gdb = client.GraphDatabase(self.url)
     clientDebug.DEBUG = False
     self.assertEqual(gdb.url, self.url)