[pygtk] Functional/Acceptance Testing Using guitest

Lawrence Oluyede l.oluyede at gmail.com
Thu May 25 20:26:17 WST 2006


On 5/25/06, baiju m <baiju.m.mail at gmail.com> wrote:
> Hi all,
>
>       I have just posted a mini article on using `guitest` for testing
> pygtk apps:
>
> http://baijum81.livejournal.com/11598.html

Great but I make some complaints if I may:

- assert type(button) == gtk.Button is not really pythonic and it's
quite deprecated because it does not support inheritance. Use assert
isinstance(button, gtk.Button)

- in the first test example there's a little duplication among the
tree test methods. Can't be simplified with a sort of setup method?


Thanks for the article :)

-- 
Lawrence
http://www.oluyede.org/blog


More information about the pygtk mailing list