Re: unit testing, setUp and scoping

2010-04-14 Thread john maclean
On 14 April 2010 16:22, Francisco Souza wrote: >> On Wed, Apr 14, 2010 at 11:47 AM, john maclean wrote: >> Can one use the setUp block to store variables so that they can be >> used elsewhere in unit tests? I'm thinking that it's better to have >> variables created in another script and have it i

Re: unit testing, setUp and scoping

2010-04-14 Thread Francisco Souza
> > On Wed, Apr 14, 2010 at 11:47 AM, john maclean wrote: > Can one use the setUp block to store variables so that they can be > used elsewhere in unit tests? I'm thinking that it's better to have > variables created in another script and have it imported from within > the unit test > Hi John, ea

Re: unit testing, setUp and scoping

2010-04-14 Thread Bruno Desthuilliers
john maclean a écrit : Can one use the setUp block to store variables so that they can be used elsewhere in unit tests? I'm thinking that it's better to have variables created in another script and have it imported from within the unit test ??? #!/usr/bin/env python '''create knowledge base