#NEWLINE# def test_panel_has_toolbar_buttons_qt4( self ) : #NEWLINE# #INDENT# from pyface.qt import QtGui #NEWLINE# ( _ , dock ) = self . setup_qt4_dock_window ( ) #NEWLINE# panel = FooPanel ( ) #NEWLINE# ui = panel . edit_traits ( parent = dock . widget ( ) , kind = 'panel' ) #NEWLINE# dock . widget ( ) . setCentralWidget ( ui . control ) #NEWLINE# self . assertIsNotNone ( dock . findChild ( QtGui . QToolBar ) ) #NEWLINE# self . assertIsNotNone ( ui . control . findChild ( QtGui . QPushButton ) )