Searched refs:checkraises (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | string_tests.py | 71 def checkraises(self, exc, obj, methodname, *args): member in CommonTest 100 self.checkraises(TypeError, 'hello', 'capitalize', 42) 132 self.checkraises(TypeError, 'hello', 'count') 133 self.checkraises(TypeError, 'hello', 'count', 42) 178 self.checkraises(TypeError, 'hello', 'find') 179 self.checkraises(TypeError, 'hello', 'find', 42) 233 self.checkraises(TypeError, 'hello', 'rfind') 234 self.checkraises(TypeError, 'hello', 'rfind', 42) 269 self.checkraises(ValueError, 'abcdefghiabc', 'index', 'hib') 270 self.checkraises(ValueError, 'abcdefghiab', 'index', 'abc', 1) [all …]
|
D | test_string.py | 21 def checkraises(self, exc, obj, methodname, *args): member in StringTest 42 self.checkraises(TypeError, ['a', unicode('b'), 3], 'join', '.') 51 self.checkraises(TypeError, string_tests.BadSeq1(), 'join', ' ')
|
D | test_userstring.py | 31 def checkraises(self, exc, obj, methodname, *args): member in UserStringTest
|
D | test_unicode.py | 392 self.checkraises(TypeError, 'abc', 'isdecimal', 42)
|