def setUp(self): self.app = QApplication(sys.argv) self.form = AssemblyTree() asm = standard_minidish(1., 500, 1.)[0] self.form.set_assembly(asm)