<s> from __future__ import absolute_import , division , print_function <EOL> from glue . external . qt import get_qapp <EOL> from . . import QMessageBoxPatched as QMessageBox <EOL> def test_main ( ) : <EOL> app = get_qapp ( ) <EOL> w = QMessageBox ( QMessageBox . Critical , "<STR_LIT>" , "<STR_LIT>" ) <EOL> w . setDetailedText ( "<STR_LIT>" ) <EOL> w . select_all ( ) <EOL> w . copy_detailed ( ) <EOL> assert app . clipboard ( ) . text ( ) == "<STR_LIT>" <EOL> app . quit ( ) </s>
