Re: assert_match_hash(self, reference, sample)

2010-04-19 Thread Phlip
>         for key, value in reference.items(): >             if value == sample.get(key, value or True): if value == sample.get(key, not(value)): D'oh! C-: -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

assert_match_hash(self, reference, sample)

2010-04-19 Thread Phlip
on that last count - neat formatting - hence you should not dump two big hashes ('dict's) into it. You can never tell which items differ, and which are just noise. So I wrote an assertion that only prints out the differing items in its diagnostic: def assert_match_hash(self, reference, sample