Re: unit test strategy

2012-09-22 Thread Aaron Brady
On Sunday, September 16, 2012 3:01:11 PM UTC-5, Steven D'Aprano wrote: > On Sun, 16 Sep 2012 11:38:15 -0700, Aaron Brady wrote: > > Here is an example of some repetitive code. > > > > for view_meth in [ dict.items, dict.keys, dict.values ]: > > dict0= dict( ( k, None ) for k in range( 10 ) )

Re: unit test strategy

2012-09-16 Thread Steven D'Aprano
On Sun, 16 Sep 2012 11:38:15 -0700, Aaron Brady wrote: > Here is an example of some repetitive code. > > for view_meth in [ dict.items, dict.keys, dict.values ]: > dict0= dict( ( k, None ) for k in range( 10 ) ) > iter0= iter( view_meth( dict0 ) ) > dict.__setitem__( dict0, 0,

Re: unit test strategy

2012-09-16 Thread Aaron Brady
On Sunday, September 16, 2012 2:42:09 AM UTC-5, Steven D'Aprano wrote: > On Fri, 14 Sep 2012 19:59:29 -0700, Aaron Brady wrote: > > > > > Hello, > > > > > > I've developing a test script. There's a lot of repetition. I want to > > > introduce a strategy for approaching it, but I don't want

Re: unit test strategy

2012-09-16 Thread Mark Lawrence
On 15/09/2012 03:59, Aaron Brady wrote: Hello, I've developing a test script. There's a lot of repetition. I want to introduce a strategy for approaching it, but I don't want the program to be discredited because of the test script. Therefore, I'd like to know what people's reactions to an

Re: unit test strategy

2012-09-16 Thread Steven D'Aprano
On Fri, 14 Sep 2012 19:59:29 -0700, Aaron Brady wrote: > Hello, > > I've developing a test script. There's a lot of repetition. I want to > introduce a strategy for approaching it, but I don't want the program to > be discredited because of the test script. Test scripts should be simple enough

Re: unit test strategy

2012-09-15 Thread Aaron Brady
On Friday, September 14, 2012 10:32:47 PM UTC-5, David Hutto wrote: > On Fri, Sep 14, 2012 at 11:26 PM, Dwight Hutto wrote: > > > On Fri, Sep 14, 2012 at 10:59 PM, Aaron Brady wrote: > > >> Hello, > > >> > > >> I've developing a test script. There's a lot of repetition. I want to > >> intr

Re: unit test strategy

2012-09-14 Thread Dwight Hutto
On Fri, Sep 14, 2012 at 11:26 PM, Dwight Hutto wrote: > On Fri, Sep 14, 2012 at 10:59 PM, Aaron Brady wrote: >> Hello, >> >> I've developing a test script. There's a lot of repetition. I want to >> introduce a strategy for approaching it, but I don't want the program to be >> discredited beca

Re: unit test strategy

2012-09-14 Thread Dwight Hutto
On Fri, Sep 14, 2012 at 10:59 PM, Aaron Brady wrote: > Hello, > > I've developing a test script. There's a lot of repetition. I want to > introduce a strategy for approaching it, but I don't want the program to be > discredited because of the test script. Therefore, I'd like to know what > p