def testSettings(self): # test that widget correctly sets and returns matching settings s = self.createFormatSettings() w = QgsTextFormatWidget(s) self.checkTextFormat(w.format())