-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_bgprobe.py
53 lines (44 loc) · 992 Bytes
/
test_bgprobe.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
50
51
52
53
# test_bgprobe.py ---
#
# Filename: test_bgprobe.py
# Description:
# Author:
# Maintainer:
# Created: Sun Jun 17 14:21:31 2012 (+0530)
# Version:
# Last-Updated: Mon Jun 18 11:44:34 2012 (+0530)
# By: subha
# Update #: 21
# URL:
# Keywords:
# Compatibility:
#
#
# Commentary:
#
#
#
#
# Change log:
#
#
#
# Code:
import unittest
from bgprobe import *
class TestBgProbe(unittest.TestCase):
def setUp(self):
print 'setUp'
self.filehandle = h5.File('/data/subha/rsync_ghevar_cortical_data_clone/2012_06_17/network_20120617_141731_30134.h5.new', 'r')
def tearDown(self):
print 'tearDown'
self.filehandle.close()
def testProbedCells(self):
probed_cells = get_probed_cells(self.filehandle)
print 'Cells connected to probe-stimulated cells'
print probed_cells
self.assertEqual(len(probed_cells), 38)
if __name__ == '__main__':
unittest.main()
#
# test_bgprobe.py ends here