[pygtk] Functional/Acceptance Testing Using guitest

baiju m baiju.m.mail at gmail.com
Thu May 25 20:40:44 WST 2006


On 5/25/06, Lawrence Oluyede <l.oluyede at gmail.com> wrote:
> - 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)

I often hear isinstance considered harmful, see this
http://www.canonical.org/~kragen/isinstance/

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

I think for simple examples it is better to improve "local understandings"
than going for abstractions.

 "Readability counts." :)

Regards,
Baiju M


More information about the pygtk mailing list