def METHOD_NAME(self):
    tmp = []
    class X(object):
        def __setslice__(self, i, j, k):
            tmp.append((i, j, k))
    x = X()
    with test_support.check_py3k_warnings():
        x[1:2] = 42
    self.assertEqual(tmp, [(1, 2, 42)])