Re: [Tutor] creating dict of dict : similar to perl hash of hash

2012-03-06 Thread Thomas Maier
On Tue, Mar 6, 2012 at 8:19 PM, David Rock da...@graniteweb.com wrote: * Abhishek Pratap abhishek@gmail.com [2012-03-06 09:50]: Hi Guys I am looking for a way to build dictionaries of dict in python. For example in perl I could do my $hash_ref = {}; $hash-{$a}-{$b}-{$c} = value; if

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