[Subversion] / PyProtocols / src / protocols / tests / test_advice.py  

Diff of /PyProtocols/src/protocols/tests/test_advice.py

Parent Directory | Revision Log

version 156, Sun Nov 7 06:24:10 2004 UTC version 158, Sun Nov 7 07:29:54 2004 UTC
Line 2 
Line 2 
   
 from unittest import TestCase, makeSuite, TestSuite  from unittest import TestCase, makeSuite, TestSuite
 from protocols.advice import *  from protocols.advice import *
   import dispatch
 import sys  import sys
 from types import InstanceType  from types import InstanceType
   
Line 152 
Line 153 
   
         def f(): pass          def f(): pass
   
         [as(lambda x: [x])]          [dispatch.as(lambda x: [x])]
         f1 = f          f1 = f
   
         self.assertEqual(f1, [f])          self.assertEqual(f1, [f])
   
         [as(list, lambda x: (x,))]          [dispatch.as(list, lambda x: (x,))]
         f1 = f          f1 = f
         self.assertEqual(f1, [f])          self.assertEqual(f1, [f])
   


Generate output suitable for use with a patch program
Legend:
Removed from v.156  
changed lines
  Added in v.158

cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help