remove testing

This commit is contained in:
Chris Jones 2009-11-24 23:47:44 +00:00
parent 2dd44ddc8a
commit f8ab3d8308
1 changed files with 0 additions and 31 deletions

View File

@ -48,34 +48,3 @@ class Factory(Borg):
import notebook import notebook
return(notebook.Notebook(args[0][0])) return(notebook.Notebook(args[0][0]))
if __name__ == '__main__':
# Do some testing
fact = Factory()
objects = []
# Test making a Terminal
terminal = fact.make('terminal')
objects.append(terminal)
# Test making a Notebook
import gtk
win = gtk.Window()
win.add(terminal)
notebook = fact.make('notebook', win)
objects.append(notebook)
# Test making an HPaned
hpaned = fact.make('hpaned')
objects.append(hpaned)
# Test making a VPaned
vpaned = fact.make('vpaned')
objects.append(vpaned)
for item in objects:
print item.__class__.__name__
# Test making something fake
fail = fact.make('counterfeit')