示例#1
0
 def test_synapse(self):
     circuit = brion.Circuit(brion.test.circuit_config)
     synapses = circuit.afferent_synapses([320])
     del circuit
     synapses = [s for s in synapses]
     for synapse in synapses:
         assert (synapse.delay() < 10)
示例#2
0
 def test_synapses(self):
     circuit = brion.Circuit(brion.test.circuit_config)
     synapses = circuit.afferent_synapses([320])
     del circuit
     delays = synapses.delays()
     for delay in delays:
         assert (delay < 10)
示例#3
0
 def setUp(self):
     self.circuit = brion.Circuit(brion.test.circuit_config)
     self.synapses = self.circuit.afferent_synapses([320])
     self.synapse = self.synapses[0]
示例#4
0
 def setUp(self):
     self.circuit = brion.Circuit(brion.test.circuit_config)
示例#5
0
 def test_open(self):
     circuit = brion.Circuit(brion.test.circuit_config)
     assert (circuit.source() == brion.test.circuit_config)
示例#6
0
 def test_bad_open(self):
     self.assertRaises(RuntimeError, lambda: brion.Circuit("foo"))