}
}
+ @staticmethod
+ def _remove_context(context):
+ if context:
+ context._delete_context()
+
def test__change_node_names(self):
ctx_attrs = {
}
my_context = dummy.DummyContext()
+ self.addCleanup(self._remove_context, my_context)
my_context.init(ctx_attrs)
expected_scenario = {
}
my_context = dummy.DummyContext()
+ self.addCleanup(self._remove_context, my_context)
my_context.init(ctx_attrs)
scenario = copy.deepcopy(self.scenario)
}
my_context = dummy.DummyContext()
+ self.addCleanup(self._remove_context, my_context)
my_context.init(ctx_attrs)
scenario = copy.deepcopy(self.scenario)
scenario['options'] = None
}
my_context = dummy.DummyContext()
+ self.addCleanup(self._remove_context, my_context)
my_context.init(ctx_attrs)
scenario = copy.deepcopy(self.scenario)
scenario['options']['server_name'] = None