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)
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)
def setUp(self): self.circuit = brion.Circuit(brion.test.circuit_config) self.synapses = self.circuit.afferent_synapses([320]) self.synapse = self.synapses[0]
def setUp(self): self.circuit = brion.Circuit(brion.test.circuit_config)
def test_open(self): circuit = brion.Circuit(brion.test.circuit_config) assert (circuit.source() == brion.test.circuit_config)
def test_bad_open(self): self.assertRaises(RuntimeError, lambda: brion.Circuit("foo"))