Skip to content

Commit

Permalink
ndx_extensions tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandercwikla committed Feb 13, 2020
1 parent c8f17c4 commit 7b9f00a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/pynwb/tests/test_apparatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@


class TestApparatus(TestCase):

@classmethod
def setUpClass(cls):
cls.node_1 = Mock()
Expand Down Expand Up @@ -35,11 +36,14 @@ def test_successfulEdgeCreation_true(self):

def test_checkEdgeCorrectValue_true(self):
self.assertEqual(self.apparatus.name, 'ApparatusName')
self.assertEqual(self.apparatus.edges, {self.edge_1.name: self.edge_1, self.edge_2.name: self.edge_2})
self.assertEqual(self.apparatus.nodes, {self.node_1.name: self.node_1, self.node_2.name: self.node_2,
self.node_3.name: self.node_3, self.node_4.name: self.node_4})
self.assertEqual(self.apparatus.edges, {self.edge_1.name: self.edge_1,
self.edge_2.name: self.edge_2})
self.assertEqual(self.apparatus.nodes, {self.node_1.name: self.node_1,
self.node_2.name: self.node_2,
self.node_3.name: self.node_3,
self.node_4.name: self.node_4})

def test_checkEdgeCorrectType_true(self):
self.assertIsInstance(self.apparatus.name, str)
self.assertIsInstance(self.apparatus.edges, dict)
self.assertIsInstance(self.apparatus.nodes, dict)
self.assertIsInstance(self.apparatus.nodes, dict)

0 comments on commit 7b9f00a

Please sign in to comment.