diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-12-07 11:41:30 -0500 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-12-07 11:41:30 -0500 |
commit | d9dc236a70e9e450951cf8c75318e1eaa9946a60 (patch) | |
tree | 23e8f1f6d3fea6af83843fb7b09bfed2ab31cbd3 /tests/test_transcript.py | |
parent | 8d001fe579667c2a650c4692b752b7b632c935f2 (diff) | |
parent | 3efb3f14630d007572a5cf1246bdb78ee63be089 (diff) | |
download | cmd2-git-d9dc236a70e9e450951cf8c75318e1eaa9946a60.tar.gz |
Merge branch 'master' into history
Diffstat (limited to 'tests/test_transcript.py')
-rw-r--r-- | tests/test_transcript.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_transcript.py b/tests/test_transcript.py index 6f1c4be0..d7438e86 100644 --- a/tests/test_transcript.py +++ b/tests/test_transcript.py @@ -200,15 +200,15 @@ this is a \/multiline\/ command ( '/tmp is nice', re.escape('/tmp is nice') ), ( 'slash at end/', re.escape('slash at end/') ), # escaped slashes - ( 'not this slash\/ or this one\/', re.escape('not this slash/ or this one/' ) ), + ( r'not this slash\/ or this one\/', re.escape('not this slash/ or this one/' ) ), # regexes ( '/.*/', '.*' ), ( 'specials ^ and + /[0-9]+/', re.escape('specials ^ and + ') + '[0-9]+' ), - ( '/a{6}/ but not \/a{6} with /.*?/ more', 'a{6}' + re.escape(' but not /a{6} with ') + '.*?' + re.escape(' more') ), - ( 'not \/, use /\|?/, not \/', re.escape('not /, use ') + '\|?' + re.escape(', not /') ), + ( r'/a{6}/ but not \/a{6} with /.*?/ more', 'a{6}' + re.escape(' but not /a{6} with ') + '.*?' + re.escape(' more') ), + ( r'not \/, use /\|?/, not \/', re.escape('not /, use ') + r'\|?' + re.escape(', not /') ), # inception: slashes in our regex. backslashed on input, bare on output - ( 'not \/, use /\/?/, not \/', re.escape('not /, use ') + '/?' + re.escape(', not /') ), - ( 'lots /\/?/ more /.*/ stuff', re.escape('lots ') + '/?' + re.escape(' more ') + '.*' + re.escape(' stuff') ), + ( r'not \/, use /\/?/, not \/', re.escape('not /, use ') + '/?' + re.escape(', not /') ), + ( r'lots /\/?/ more /.*/ stuff', re.escape('lots ') + '/?' + re.escape(' more ') + '.*' + re.escape(' stuff') ), ]) def test_parse_transcript_expected(expected, transformed): app = CmdLineApp() |