-
Notifications
You must be signed in to change notification settings - Fork 24
/
resource_tests.py
49 lines (34 loc) · 1.37 KB
/
resource_tests.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
""""Tests of external resources NeuronUnit may access"""
from .base import *
class NeuroElectroTestCase(unittest.TestCase):
"""Testing retrieval of data from NeuroElectro.org"""
@unittest.skipUnless(neuroelectro.is_neuroelectro_up(),
"NeuroElectro URL is not responsive")
def test_neuroelectro(self):
x = neuroelectro.NeuroElectroDataMap()
x.set_neuron(id=72)
x.set_ephysprop(id=2)
x.set_article(pmid=18667618)
x.get_values()
x.check()
x = neuroelectro.NeuroElectroSummary()
x.set_neuron(id=72)
x.set_ephysprop(id=2)
x.get_values()
x.check()
class BlueBrainTestCase(NotebookTools,
unittest.TestCase):
path = '.'
@unittest.skipUnless(bbp.is_bbp_up(),
"Blue Brain URL is not responsive")
def test_bluebrain(self):
self.do_notebook('bbp')
class AIBSTestCase(unittest.TestCase):
@unittest.skipUnless(aibs.is_aibs_up(),
"AIBS URL is not responsive")
def test_aibs(self):
dataset_id = 354190013 # Internal ID that AIBS uses for a particular Scnn1a-Tg2-Cre
# Primary visual area, layer 5 neuron.
observation = aibs.get_observation(dataset_id,'rheobase')
if __name__ == '__main__':
unittest.main()