def test_should_make_parent_widget_and_layout_report_having_height_for_width(self):
        parent = QWidget()
        layout = QVBoxLayout()
        layout.addWidget(self.auto_resizing_text_edit)
        parent.setLayout(layout)

        self.assertTrue(layout.hasHeightForWidth())
        self.assertTrue(parent.hasHeightForWidth())
Exemple #2
0
    def test_should_make_parent_widget_and_layout_report_having_height_for_width(
            self):
        parent = QWidget()
        layout = QVBoxLayout()
        layout.addWidget(self.auto_resizing_text_edit)
        parent.setLayout(layout)

        self.assertTrue(layout.hasHeightForWidth())
        self.assertTrue(parent.hasHeightForWidth())