def test_lazy_str_reduce_other(self): return strings = ['1abc123asdf3', '2abc1234asdf4', '3abc234asdf5'] self.assertEqual(_str_reduce(strings, '(.*)', '[...]'), ('(.*)', '[...]'))
def test_lazy_str_reduce(self): return strings = ['abc123asdf', 'abc1234asdf', 'abc234asdf'] self.assertEqual(_str_reduce(strings, '(.*)', '[...]'), ('abc(.*)asdf', 'abc[...]asdf'))