Functional/Acceptance Testing Using guitest
Introdution guitest (http://gintas.pov.lt/guitest) by Gintautas Miliauskas is a helper library for unit-testing GUI applications written in Python. In this article I will demonstrate how to test a PyGTK application. This article assume you are familiar with ``unittest`` module and unit testing. Installation The latest version 0.3.1 released on 2005-11-26 is available from here: http://gintas.pov.lt/guitest/guitest-0.3.1.tar.gz . Invoke `python setup.py install` to install the library into the local python's site-packages directory. Alternatively you may simply copy the guitest subdirectory to your project's main source directory. Getting Started Consider this example :: import gtk class HelloWorld(object): def __init__(self): self.window = gtk.Window() self.button = gtk.Button("Hello") self.window.add(self.button) self.window.show_all() def main(self): gtk.main() if __name__ == '__main__':...