def showImpactFunctionsTable(self): '''Show table of impact functions. ''' self.if_table = core.get_plugins_as_table(self.dict_filter) self.webView.settings().setAttribute( QtWebKit.QWebSettings.DeveloperExtrasEnabled, True) self.displayHtml(QtCore.QString(str(self.if_table)))
def test_get_plugins_as_table(self): """Test get plugins as table with filtering.""" plugins_table = get_plugins_as_table({'title': 'Title for F1'}) control_file_path = test_data_path('control', 'files', 'test-get-plugins-as-table.txt') expected_result = open(control_file_path, 'r').read() self.assertEqual(plugins_table.toNewlineFreeString(), str(expected_result).replace('\n', ''))
def test_get_plugins_as_table(self): """Test get plugins as table with filtering.""" plugins_table = get_plugins_as_table({'title': 'Title for F1'}) control_file_path = test_data_path( 'control', 'files', 'test-get-plugins-as-table.txt') expected_result = open(control_file_path, 'r').read() self.assertEqual( plugins_table.toNewlineFreeString(), str(expected_result).replace('\n', ''))
def test_get_plugins_as_table(self): """Test get plugins as table with filtering.""" T = get_plugins_as_table() S = T.toNewlineFreeString() LOGGER.debug(S)