def METHOD_NAME(self):
    s = self.type2test("foo")
    s[:] = "bar"
    self.assertEqual(s, "bar")
    s[1:2] = "foo"
    self.assertEqual(s, "bfoor")
    s[1:-1] = UserString("a")
    self.assertEqual(s, "bar")
    s[0:10] = 42
    self.assertEqual(s, "42")