Lines Matching refs:lst
169 lst = list('ab!cdefghi!j')
170 del lst[self.o]
171 del lst[self.n]
172 lst[self.o] = 'X'
173 lst[self.n] = 'Y'
174 self.assertEqual(lst, list('abYdefghXj'))
176 lst = [5, 6, 7, 8, 9, 10, 11]
177 lst.__setitem__(self.n, "here")
178 self.assertEqual(lst, [5, 6, "here", 8, 9, 10, 11])
179 lst.__delitem__(self.n)
180 self.assertEqual(lst, [5, 6, 8, 9, 10, 11])
185 lst = [6, 4]
186 lst *= self.o
187 self.assertEqual(lst, [6, 4, 6, 4])
188 lst *= self.n
189 self.assertEqual(lst, [6, 4, 6, 4] * 3)
191 lst = [5, 6, 7, 8, 9, 11]
192 l2 = lst.__imul__(self.n)
193 self.assertIs(l2, lst)
194 self.assertEqual(lst, [5, 6, 7, 8, 9, 11] * 3)