|
@@ -52,6 +52,20 @@ class TestSynapseLauncher(unittest.TestCase):
|
|
|
expected_result = [[should_be_created_matched_synapse]]
|
|
|
self.assertEqual(expected_result, LIFOBuffer.lifo_list)
|
|
|
|
|
|
+ # we expect that the lifo has been loaded with the synapse to run and overwritten parameters
|
|
|
+ # clean the LiFO
|
|
|
+ LIFOBuffer.lifo_list = list()
|
|
|
+ overriding_param = {
|
|
|
+ "val1": "val"
|
|
|
+ }
|
|
|
+ SynapseLauncher.start_synapse_by_name("Synapse1", brain=self.brain_test,
|
|
|
+ overriding_parameter_dict=overriding_param)
|
|
|
+ should_be_created_matched_synapse = MatchedSynapse(matched_synapse=self.synapse1,
|
|
|
+ overriding_parameter=overriding_param)
|
|
|
+ # we expect that the lifo has been loaded with the synapse to run
|
|
|
+ expected_result = [[should_be_created_matched_synapse]]
|
|
|
+ self.assertEqual(expected_result, LIFOBuffer.lifo_list)
|
|
|
+
|
|
|
# non existing synapse in the brain
|
|
|
with self.assertRaises(SynapseNameNotFound):
|
|
|
SynapseLauncher.start_synapse_by_name("not_existing", brain=self.brain_test)
|