Want to call a method only once for unittest.TestCase--but not sure how?

2009-09-28 Thread Oltmans
Hello fellow python hackers, I'm not an expert when it comes to Python and I'm totally stuck in a situation. All of our unit tests are written using built-in 'unittest' module. We've a requirement where we want to run a method only once for our unit tests. Some background: all of our tests are

Re: Want to call a method only once for unittest.TestCase--but not sure how?

2009-09-28 Thread Francesco Bochicchio
On Sep 28, 12:45 pm, Oltmans rolf.oltm...@gmail.com wrote: Hello fellow python hackers, I'm not an expert when it comes to Python and I'm totally stuck in a situation. All of our unit tests are written using built-in 'unittest' module. We've a requirement where we want to run a method only

Re: Want to call a method only once for unittest.TestCase--but not sure how?

2009-09-28 Thread Scott David Daniels
Oltmans wrote: ... All of our unit tests are written using built-in 'unittest' module. We've a requirement where we want to run a method only once for our unit tests So I'm completely stumped as to how to create a method that will only be called only once for Calculator class. Can you