- TW-295 Replacing annotations or descriptions which contain '/'s (thanks to
         Johannes Schlatow).
This commit is contained in:
Paul Beckingham 2014-11-09 20:07:27 -05:00
parent d38e606a50
commit 3e67d68f57
2 changed files with 31 additions and 0 deletions

29
test/tw-295.t Executable file
View file

@ -0,0 +1,29 @@
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
import sys
import os
import unittest
from datetime import datetime
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from basetest import Task, TestCase
class TestBugNumber(TestCase):
@classmethod
def setUp(self):
self.t = Task()
def test_subst_with_slashes(self):
"""Test substitution containing slashes"""
self.t(('add', '--', 'one/two/three'))
self.t(('1', 'modify', '/\\/two\\//TWO/'))
code, out, err = self.t(('list',))
self.assertIn('oneTWOthree', out)
if __name__ == "__main__":
from simpletap import TAPTestRunner
unittest.main(testRunner=TAPTestRunner())
# vim: ai sts=4 et sw=4