<s> from __future__ import print_function <EOL> import flask <EOL> import flask . ext . neo4j <EOL> from py2neo import neo4j <EOL> import unittest <EOL> class FlaskRequestTest ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . app = flask . Flask ( '<STR_LIT:test>' ) <EOL> self . context = self . app . test_request_context ( '<STR_LIT:/>' ) <EOL> self . context . push ( ) <EOL> def tearDown ( self ) : <EOL> self . context . pop ( ) <EOL> class FlaskNeo4jConfigTestCase ( FlaskRequestTest ) : <EOL> def test_graph_db_config ( self ) : <EOL> self . app . config [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> self . app . config [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> self . app . config [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> self . app . config [ '<STR_LIT>' ] = True <EOL> self . app . config [ '<STR_LIT>' ] = <NUM_LIT:2> <EOL> flask4j = flask . ext . neo4j . Neo4j ( self . app ) <EOL> print ( '<STR_LIT>' , flask4j . gdb ) <EOL> assert flask4j . gdb is not None <EOL> assert flask4j . gdb . neo4j_version is not None <EOL> class FlaskNeo4jIndexTestCase ( FlaskRequestTest ) : <EOL> def test_index_crud ( self ) : <EOL> self . app . config [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> self . app . config [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> self . app . config [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> test_indexes = { '<STR_LIT>' : neo4j . Node , '<STR_LIT>' : neo4j . Relationship } <EOL> flask4j = flask . ext . neo4j . Neo4j ( self . app , indexes = test_indexes ) <EOL> print ( '<STR_LIT>' , flask4j . gdb ) <EOL> assert flask4j . index [ '<STR_LIT>' ] is not None <EOL> assert flask4j . index [ '<STR_LIT>' ] is not None <EOL> flask4j . delete_index ( '<STR_LIT>' ) <EOL> flask4j . delete_index ( '<STR_LIT>' ) <EOL> class FlaskNeo4jOGMTestCase ( FlaskRequestTest ) : <EOL> def test_ogm_crud ( self ) : <EOL> self . app . config [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> self . app . config [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> self . app . config [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> n4j = flask . ext . neo4j . Neo4j ( self . app ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
