unit tests : now compliant with 2.6
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user