test_unicode was forgetting to run the common string tests for str.find()

This commit is contained in:
Antoine Pitrou 2011-10-08 22:42:00 +02:00
commit 798b4df812
1 changed files with 1 additions and 0 deletions

View File

@ -170,6 +170,7 @@ class UnicodeTest(string_tests.CommonTest,
self.checkequalnofix(0, 'aaa', 'count', 'a', 0, -10)
def test_find(self):
string_tests.CommonTest.test_find(self)
self.checkequalnofix(0, 'abcdefghiabc', 'find', 'abc')
self.checkequalnofix(9, 'abcdefghiabc', 'find', 'abc', 1)
self.checkequalnofix(-1, 'abcdefghiabc', 'find', 'def', 4)