Пример #1
0
    def test_existing(self):
        with share.env.neo4j_connect.begin() as tx:
            q = 'CREATE (c:config) SET c = $data'
            p = {
                'data': {
                    'name': 'config',
                    'reflow_on_switch_activation': False,
                    'unpush_flow': False,
                    'sync_rules': False,
                    'push_flow': False,
                    'delete_flow': False,
                    'create_flow': False,
                    'update_flow': False}}
            tx.run(q, p)

        messageclasses.read_config()
        self.assertFalse(
                messageclasses.features_status[
                    messageclasses.FEATURE_REROUTE_ON_ISL_DISCOVERY])
Пример #2
0
 def setUp(self):
     super(TestConfig, self).setUp()
     with share.env.neo4j_connect.begin() as tx:
         clean_neo4j_test_data(tx)
     messageclasses.read_config()