Dynamically passing variables to unittest

2004-12-14 Thread Tom Haddon
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 I can maintain

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 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

Decimal Places Incorrect

2005-06-08 Thread Tom Haddon
Hi Folks, When I run: print "%0.2f" % ((16160698368/1024/1024/1024),) I get 15.00 I should be getting 15.05. Can anyone tell me why I'm not? Thanks, Tom -- http://mail.python.org/mailman/listinfo/python-list