Test: Merged tw-21.t into uda.t

This commit is contained in:
Paul Beckingham
2015-10-23 10:20:25 -04:00
parent acca829aed
commit 34d737f700
2 changed files with 15 additions and 56 deletions

View File

@@ -274,6 +274,21 @@ class TestBug1063(TestCase):
self.assertRegexpMatches(out, expected)
class TestBug21(TestCase):
def setUp(self):
self.t = Task()
def test_almost_UDA(self):
"""21: do not match a UDA if not followed by colon"""
self.t.config('uda.foo.type', 'string')
self.t.config('uda.foo.label', 'FOO')
self.t("add this is a foo bar")
code, out, err = self.t("1 info")
self.assertIn("this is a foo bar", out)
if __name__ == "__main__":
from simpletap import TAPTestRunner
unittest.main(testRunner=TAPTestRunner())