unit tests : now compliant with 2.6
This commit is contained in:
parent
f7f192e12b
commit
47035671e8
@ -90,12 +90,15 @@ class CompositeFromInterface:
|
||||
|
||||
def test_error_conditions(self):
|
||||
|
||||
with self.assertRaises(TypeError):
|
||||
def wrong_container():
|
||||
@pattern.composite(interface=self.Base, container=2)
|
||||
class CompositeFromInterface:
|
||||
pass
|
||||
|
||||
with self.assertRaises(TypeError):
|
||||
def no_methods():
|
||||
@pattern.composite()
|
||||
class CompositeFromInterface:
|
||||
pass
|
||||
|
||||
self.assertRaises(TypeError, wrong_container)
|
||||
self.assertRaises(TypeError, no_methods)
|
||||
|
Loading…
Reference in New Issue
Block a user