[Zope-CMF] Re: GenericSetup: catalog.xml ideas

Maurits van Rees m.van.rees at zestsoftware.nl
Tue Apr 10 05:36:16 EDT 2007


yuppie, on 2007-04-09:
> Looks fine, I checked it in:
> http://svn.zope.org/?rev=74050&view=rev
> http://svn.zope.org/?rev=74051&view=rev

Merci.

>> BTW, I am slightly freaked out by the following.  In that test file
>> there is this test:
>> 
>>         self.assertEqual(adapted.body, _CATALOG_BODY % ('', _ZCTEXT_XML))
>> 
>> The test passes of course.  But when I copy that line so the test is
>> run twice, like this:
>> 
>>         self.assertEqual(adapted.body, _CATALOG_BODY % ('', _ZCTEXT_XML))
>>         self.assertEqual(adapted.body, _CATALOG_BODY % ('', _ZCTEXT_XML))
>> 
>> then the second test throws an error!
>> 
>> [...]
>> 
>> Going in with the pdb also throws that error when you try to print
>> adapted.body twice.
>> 
>> I will loan you my "Here be dragons" sign. ;-)
>
> Fixed as well.

Ah, thanks.  Tested and found working now.  That keeps me sane. :)


-- 
Maurits van Rees | http://maurits.vanrees.org/ [NL]
            Work | http://zestsoftware.nl/
"Do not worry about your difficulties in computers,
 I can assure you mine are still greater."



More information about the Zope-CMF mailing list