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