(self)
| 301 | i = d.index("Hello world", 0, 4) |
| 302 | |
| 303 | def test_insert(self): |
| 304 | # Test to make sure insert behaves like lists |
| 305 | elements = 'ABCDEFGHI' |
| 306 | for i in range(-5 - len(elements)*2, 5 + len(elements) * 2): |
| 307 | d = deque('ABCDEFGHI') |
| 308 | s = list('ABCDEFGHI') |
| 309 | d.insert(i, 'Z') |
| 310 | s.insert(i, 'Z') |
| 311 | self.assertEqual(list(d), s) |
| 312 | |
| 313 | def test_insert_bug_26194(self): |
| 314 | data = 'ABC' |
nothing calls this directly
no test coverage detected