(self)
| 305 | self.assertEqual(translated, expect, pattern) |
| 306 | |
| 307 | def test_star_indices_locations(self): |
| 308 | from fnmatch import _translate |
| 309 | |
| 310 | blocks = ['a^b', '***', '?', '?', '[a-z]', '[1-9]', '*', '++', '[[a'] |
| 311 | parts, star_indices = _translate(''.join(blocks), '*', '.') |
| 312 | expect_parts = ['a', r'\^', 'b', '*', |
| 313 | '.', '.', '[a-z]', '[1-9]', '*', |
| 314 | r'\+', r'\+', r'\[', r'\[', 'a'] |
| 315 | self.assertListEqual(parts, expect_parts) |
| 316 | self.assertListEqual(star_indices, [3, 8]) |
| 317 | |
| 318 | |
| 319 | class FilterTestCase(unittest.TestCase): |
nothing calls this directly
no test coverage detected