def test_configuration_reinstantiation(self): # Trying several instantiations one after the other. This test doesn't # only test the instantiation, but also reinstantiation after cleanup # With implicit exit engine = rtneuron.RTNeuron(sys.argv) engine.init() # Without deleting the object # This throws because the new instance is created before the old # one is destroyed. self.assertRaises(RuntimeError, rtneuron.RTNeuron) del engine engine = rtneuron.RTNeuron(sys.argv) engine.init() del engine
def setUp(self): self.engine = rtneuron.RTNeuron(sys.argv) self.engine.init(setup.medium_rect_eq_config) self.view = self.engine.views[0]
def test_configuration_instantiation_explicit_exit(self): engine = rtneuron.RTNeuron() engine.init() engine.exit() del engine
def test_configuration_instantiation_with_config(self): engine = rtneuron.RTNeuron() engine.init(setup.medium_rect_eq_config) del engine
def test_creation_with_args_and_attributes(self): attributes = rtneuron.AttributeMap({'soma_radius': 10}) engine = rtneuron.RTNeuron(sys.argv, attributes)
def test_creation_with_attributes(self): attributes = rtneuron.AttributeMap({'soma_radius': 10}) engine = rtneuron.RTNeuron(attributes=attributes)
def test_creation_with_args(self): args = ['--eq-flags', ''] engine = rtneuron.RTNeuron(args)
def test_creation_without_args(self): engine = rtneuron.RTNeuron()
def setUp(self): self.engine = rtneuron.RTNeuron() self.engine.init(setup.small_eq_config) self.engine.resume() self.view = self.engine.views[0] self.camera = self.view.camera