unit tests : now compliant with 2.6

This commit is contained in:
alalazo 2016-01-27 17:22:12 +01:00
parent f7f192e12b
commit 47035671e8

View File

@ -90,12 +90,15 @@ class CompositeFromInterface:
def test_error_conditions(self): def test_error_conditions(self):
with self.assertRaises(TypeError): def wrong_container():
@pattern.composite(interface=self.Base, container=2) @pattern.composite(interface=self.Base, container=2)
class CompositeFromInterface: class CompositeFromInterface:
pass pass
with self.assertRaises(TypeError): def no_methods():
@pattern.composite() @pattern.composite()
class CompositeFromInterface: class CompositeFromInterface:
pass pass
self.assertRaises(TypeError, wrong_container)
self.assertRaises(TypeError, no_methods)