diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2009-09-26 12:35:01 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2009-09-26 12:35:01 (GMT) |
commit | 029625c3f6bf3a205a04f067facaae21174ef48a (patch) | |
tree | ab486b1307906c48271d8860fad6839b2b58e139 /Lib/test/test_string.py | |
parent | 2dcd4c5a0f5fba4a1e34e4a902971c2e4ce7349f (diff) | |
download | cpython-029625c3f6bf3a205a04f067facaae21174ef48a.zip cpython-029625c3f6bf3a205a04f067facaae21174ef48a.tar.gz cpython-029625c3f6bf3a205a04f067facaae21174ef48a.tar.bz2 |
Merged revisions 75074 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r75074 | ezio.melotti | 2009-09-26 15:33:22 +0300 (Sat, 26 Sep 2009) | 9 lines
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 743fa6b..b495d69 100644 --- a/Lib/test/test_string.py +++ b/Lib/test/test_string.py @@ -22,6 +22,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() |