Test: Merged bug.441.t into substitute.t

This commit is contained in:
Paul Beckingham
2015-10-23 07:07:53 -04:00
parent b9bbc83302
commit 9eda156ea9
2 changed files with 13 additions and 56 deletions

View File

@@ -84,6 +84,19 @@ class TestSubstitutions(TestCase):
code, out, err = self.t("_get 1.description")
self.assertEqual("aaa BbB\n", out)
class TestBug441(TestCase):
def setUp(self):
self.t = Task()
def test_bad_colon_replacement(self):
"""Substitution containing a colon"""
self.t("add one two three")
self.t("1 modify /two/two:/")
code, out, err = self.t("ls")
self.assertIn("one two: three", out)
if __name__ == "__main__":
from simpletap import TAPTestRunner