Re: Design advice for unit test asserters

2005-05-02 Thread Edvard Majakari
"Gary" <[EMAIL PROTECTED]> writes: Hi again, > First, thanks to both Kent and Edvard for useful comments. > I certainly need to consider whether it make sense to switch to py.test at > this time; its simplicity is attractive. For what it's worth, I've also coded a simple py.test skeleton gener

Re: Design advice for unit test asserters

2005-04-27 Thread Gary
First, thanks to both Kent and Edvard for useful comments. I certainly need to consider whether it make sense to switch to py.test at this time; its simplicity is attractive. In response to Edvards question: Edvard Majakari wrote: > "Gary" <[EMAIL PROTECTED]> writes: ... > > self.Assert

Re: Design advice for unit test asserters

2005-04-21 Thread Edvard Majakari
"Gary" <[EMAIL PROTECTED]> writes: [ py.test ad follows :) ] > def test_SomeTest(...): > ... > self.AssertAllFilesExist(fileList) > > or > > def test_SomeTest(...): > ... > [ self.AssertFileExists(f) for f in fileList ] I prefer the latter, because t

Re: Design advice for unit test asserters

2005-04-21 Thread Kent Johnson
Gary wrote: I'm working on a project where I'm doing various file manipulations. I'm not familiar with the idioms are common or good for this situation, so I'd appreciate advice and suggestions. Question 1: A number of checks apply to a set of files. So I'm wondering whether to have something lik