def test_format_witnesses(self): """Asserting formatter result by giving various input samples.""" tests = [ ('Test', 'at tab sizes T, e, s, t'), ('', 'at tab size '), ('t', 'at tab size t'), (' t ', 'at tab sizes , , t, , '), ] for words, expected in tests: with self.subTest(words=words, expected=expected): self.assertEqual(tabnanny.format_witnesses(words), expected)
def update_event(self, inp=-1): self.set_output_val(0, tabnanny.format_witnesses(self.input(0)))