diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2009-09-26 12:33:22 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2009-09-26 12:33:22 (GMT) |
commit | a40bdda9377dfaa9a39a4019cecbe16e3ca9f884 (patch) | |
tree | df5947b2a54fefb0a6f5ee82c1ff824651091e86 /Lib/test/test_string.py | |
parent | 2c6a949e43f55ddd0a09e1eba611f03a47268913 (diff) | |
download | cpython-a40bdda9377dfaa9a39a4019cecbe16e3ca9f884.zip cpython-a40bdda9377dfaa9a39a4019cecbe16e3ca9f884.tar.gz cpython-a40bdda9377dfaa9a39a4019cecbe16e3ca9f884.tar.bz2 |
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() |