Skip to content

Commit

Permalink
test for update of undirected graph with another undirected graph
Browse files Browse the repository at this point in the history
  • Loading branch information
eileen-kuehn committed Jul 27, 2018
1 parent e83f4c9 commit a8f7819
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions graphi_unittests/types_unittests/test_undirected.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,8 @@ def test_update(self):
self.assertIn(undirected.UndirectedEdge[1:3], undirected_graph)
self.assertIn(undirected.UndirectedEdge[1:4], undirected_graph)
self.assertNotIn(undirected.UndirectedEdge[2:3], undirected_graph)
second_graph = self.graph_cls({
2: {3: 1}
})
undirected_graph.update(second_graph)
self.assertIn(undirected.UndirectedEdge[2:3], undirected_graph)

0 comments on commit a8f7819

Please sign in to comment.