RE: Dynamically passing variables to unittest

2004-12-15 Thread Tom Haddon
Great, works a treat. Thanks -Original Message- From: Jim Sizelove [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 15, 2004 11:28 AM To: [EMAIL PROTECTED] Subject: Re: Dynamically passing variables to unittest Tom Haddon wrote: > Hi Peter, > > Yeah, you're r

Re: Dynamically passing variables to unittest

2004-12-15 Thread Jim Sizelove
Tom Haddon wrote: Hi Peter, Yeah, you're right, the term "ConnectString" is a little confusing. Perhaps I should change that. Here's a valid call to DB: conn=DB.DB('pg','test','localhost',5432,'test','test') In the context of this unittest, a valid syntax would be (except that this unittest would

RE: Dynamically passing variables to unittest

2004-12-15 Thread Tom Haddon
: Peter Hansen [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 15, 2004 7:37 AM To: [EMAIL PROTECTED] Subject: Re: Dynamically passing variables to unittest Tom Haddon wrote: > So, my question is, how do I dynamically > pass the variables from a list, for example to the unittest modul

Re: Dynamically passing variables to unittest

2004-12-15 Thread Peter Hansen
Tom Haddon wrote: > So, my question is, how do I dynamically > pass the variables from a list, for example to the unittest module so I > can maintain the list of test cases more easily: > > - > import DB > import unittest > > class ConnectString(unittest.TestCase): >

Re: Dynamically passing variables to unittest

2004-12-14 Thread Mark McEahern
Tom Haddon wrote: Hi Folks, Newbie question here. I'm trying to set up some unit testing for a database abstraction class, and the first thing I want to test is the connection parameters. So, my question is, how do I dynamically pass the variables from a list, for example to the unittest module so