]> granicus.if.org Git - python/commitdiff
Fix copy&paste error: call title instead of count
authorWalter Dörwald <walter@livinglogic.de>
Mon, 10 Feb 2003 17:44:16 +0000 (17:44 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Mon, 10 Feb 2003 17:44:16 +0000 (17:44 +0000)
Lib/test/test_unicode.py

index 130a418dc5ee78a39b5da80146638eaf3e7d4911..1b78ddded8831da320d30e21a8df5d13649ee918 100644 (file)
@@ -90,7 +90,7 @@ class UnicodeTest(unittest.TestCase):
         self.checkmethod('title', u"fOrMaT,thIs-aS*titLe;String", u'Format,This-As*Title;String')
         self.checkmethod('title', u"getInt", u'Getint')
 
-        self.assertRaises(TypeError, u'hello'.count, 42)
+        self.assertRaises(TypeError, u'hello'.title, 42)
 
     def test_find(self):
         self.checkmethod('find', u'abcdefghiabc', 0, u'abc')