added external design pattern documentation links to behavioural patterns.

This commit is contained in:
tylerlaberge
2016-08-24 21:53:02 -04:00
parent 854966b38b
commit 5af1a1ae38
12 changed files with 47 additions and 21 deletions

View File

@@ -1,6 +1,6 @@
from unittest import TestCase
from pypatterns.behavioral.chain import ChainException, ChainLink, Chain
from pypatterns.behavioral.chain import ChainLink, Chain
class ChainLinkTestCase(TestCase):
@@ -66,7 +66,7 @@ class ChainLinkTestCase(TestCase):
@raise AssertionError: If the test fails.
"""
handler = self.chain_link_one_class()
with self.assertRaises(ChainException):
with self.assertRaises(AttributeError):
handler.handle("foo")