Re: [Pyunit-interest] Aid requsted regarding test-first-design
                
                Brought to you by:
                
                    purcell
                    
                
            
            
        
        
        
    | 
     
      
      
      From: Dave K. <dk...@bl...> - 2001-11-24 20:25:59
      
     
   | 
>Date: Fri, 23 Nov 2001 11:24:13 -0500 (EST) >From: Michal Wallace <sa...@ma...> >Subject: Re: [Pyunit-interest] Aid requsted regarding test-first-design > >Jesse >This is a good time to use what they call "Mock Objects". >[snip...] >If you're mocking objects, there's actually a library that >lets you set up mock objects to return certain values for >different method calls, and count the number of times each >method has been called. Do a search for "python mock >objects" if you're interested. The module in question is in the file area of the Yahoo extremeprogramming group - http://groups.yahoo.com/group/extremeprogramming/files/PythonMock.zip As the author of the module, I welcome any feedback on ways to improve it. Unfortunately I am not doing any Python programming at work at the moment, so am not currently using it. If there is any interest in adding the module to the pyunit distribution, or hosting it separately on the pyunit site then I would be more than happy to contribute it. Dave Kirby  |