def test_two_lines(self): line = PURPOSE_RE.sub(r"", "1. foo\n2. bar\n") self.assertEqual(line, "foo\nbar\n")
def test_one_line(self): line = PURPOSE_RE.sub(r"", "1. foo\n") self.assertEqual(line, "foo\n")