Skip to content

Commit

Permalink
test neurons made it easier to see where mismatches
Browse files Browse the repository at this point in the history
  • Loading branch information
tgbugs committed Apr 4, 2019
1 parent 3f0e5cf commit 4b5896a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion neurondm/test/test_neurons.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,17 @@ def test_ttl_simple(self):
Neuron(Phenotype('TEMP:turtle-phenotype'))
Neuron(NegPhenotype('TEMP:turtle-phenotype'))
config.write()
a = config.neurons()

config2 = Config('test-ttl', ttl_export_dir=tel, py_export_dir=pyel)
config2.load_existing()
config2.write_python()
b = config2.neurons()

config3 = Config('test-ttl', ttl_export_dir=tel, py_export_dir=pyel)
config3.load_python()
c = config3.neurons()

print(a, b, c)
assert config.existing_pes is not config2.existing_pes is not config3.existing_pes
assert config.neurons() == config2.neurons() == config3.neurons()
assert a == b == c

0 comments on commit 4b5896a

Please sign in to comment.