Skip to content

Commit

Permalink
added test for directed value view iteration and containment
Browse files Browse the repository at this point in the history
  • Loading branch information
eileen-kuehn committed Jul 27, 2018
1 parent bb5d05b commit 2c1d799
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions graphi_unittests/types_unittests/test_adjacency_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,4 +308,7 @@ def test_value_view_directed(self):
graph[1:node] = value
graph[node:1] = 4
value_view = graph.values()
for value in value_view:
self.assertIn(value, [0, 1, 2, 4])
self.assertTrue(value in value_view)
self.assertEqual(len(nodes) * 2, len(value_view))

0 comments on commit 2c1d799

Please sign in to comment.