Skip to content

Commit

Permalink
added test for unequal tail/head for loops
Browse files Browse the repository at this point in the history
  • Loading branch information
eileen-kuehn committed Jul 26, 2018
1 parent b6866f2 commit acac060
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions graphi_unittests/test_edge.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ def test_representation(self):
class TestLoop(unittest.TestCase):
def test_init(self):
self.assertEquals(Loop("start"), Edge("start", "start"))

with self.assertRaises(ValueError):
Loop("start", "stop")

0 comments on commit acac060

Please sign in to comment.