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

This commit is contained in:
Antoine Pitrou 2011-10-08 22:41:35 +02:00
parent 74472a94aa
commit c0bbe7d38a
1 changed files with 1 additions and 0 deletions

View File

@ -174,6 +174,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)