[Tutor] Testing dymamically created methods

2012-01-10 Thread Thomas Maier
Hi all, I would like to use some existing tool like py.test or nose to run my tests, but I failed to do so. The problem is as follow. I have tests: ### test_methods.py ### def test_one(): assert 1 == 1 def test_two(): assert 1 == 1 # I have abstraction layer that keeps

Re: [Tutor] Testing dymamically created methods

2012-01-10 Thread Walter Prins
Hi, On 10 January 2012 12:15, Thomas Maier hay...@gmail.com wrote: This code works without py.test or nosetests. For example if I use print instead of 'assert'. Both py.test and nosetests failed to execute this correctly. Or maybe they do execute it correctly, I just don't understand it..:)

Re: [Tutor] Testing dymamically created methods

2012-01-10 Thread Thomas Maier
On Tue, Jan 10, 2012 at 3:31 PM, Walter Prins wpr...@gmail.com wrote: Hi, On 10 January 2012 12:15, Thomas Maier hay...@gmail.com wrote: This code works without py.test or nosetests. For example if I use print instead of 'assert'. Both py.test and nosetests failed to execute this correctly.