Пример #1
0
 def testTableCellSummary(self):
   """TableCellSummary stores the data given to it."""
   cell = table_view_helpers.TableCellSummary(
       MakeTestIssue(4, 4, 'Lame default summary.'), **self.table_cell_kws)
   self.assertEqual(cell.type, table_view_helpers.CELL_TYPE_SUMMARY)
   self.assertEqual(cell.values[0].item, 'Lame default summary.')
   self.assertEqual(cell.non_column_labels[0].value, 'lab')
Пример #2
0
 def testTableCellSummary_NoPythonEscaping(self):
   """TableCellSummary stores the summary without escaping it in python."""
   cell = table_view_helpers.TableCellSummary(
       MakeTestIssue(4, 4, '<b>bold</b> "summary".'), **self.table_cell_kws)
   self.assertEqual(cell.values[0].item,'<b>bold</b> "summary".')