diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2009-09-26 11:23:16 +0000 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2009-09-26 11:23:16 +0000 |
commit | 9ba83c50f40370a3dd50d5acd15856e7001287b4 (patch) | |
tree | bd64739f7191e5b147046f646e81a9d8f2aaa4ed /Lib/test/test_string.py | |
parent | 02c0943ea3778d2b32dd9c293efc2f3b5f9db032 (diff) | |
download | cpython-git-9ba83c50f40370a3dd50d5acd15856e7001287b4.tar.gz |
Merged revisions 75070 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75070 | ezio.melotti | 2009-09-26 14:20:53 +0300 (Sat, 26 Sep 2009) | 1 line
#7000: document "sep" in capwords. Add a few tests
........
Diffstat (limited to 'Lib/test/test_string.py')
-rw-r--r-- | Lib/test/test_string.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_string.py b/Lib/test/test_string.py index 20cff0a8fb..48677e045b 100644 --- a/Lib/test/test_string.py +++ b/Lib/test/test_string.py @@ -105,6 +105,9 @@ class ModuleTest(unittest.TestCase): self.assertEqual(string.capwords('ABC DEF GHI'), 'Abc Def Ghi') self.assertEqual(string.capwords('ABC-DEF-GHI', '-'), 'Abc-Def-Ghi') self.assertEqual(string.capwords('ABC-def DEF-ghi GHI'), 'Abc-def Def-ghi Ghi') + self.assertEqual(string.capwords(' aBc DeF '), 'Abc Def') + self.assertEqual(string.capwords('\taBc\tDeF\t'), 'Abc Def') + self.assertEqual(string.capwords('\taBc\tDeF\t', '\t'), '\tAbc\tDef\t') def test_formatter(self): fmt = string.Formatter() |