Lines Matching refs:setattr
25 self.assertRaises(ValueError, setattr, buf, "value", "aaaaaaaa")
26 self.assertRaises(TypeError, setattr, buf, "value", 42)
34 self.assertRaises(TypeError, setattr, buf, "value", memoryview("Hello, World"))
35 self.assertRaises(TypeError, setattr, buf, "value", memoryview("abc"))
36 self.assertRaises(ValueError, setattr, buf, "raw", memoryview("x" * 100))
43 self.assertRaises(TypeError, setattr, buf, "value", memoryview("abc"))
44 self.assertRaises(ValueError, setattr, buf, "raw", memoryview("x" * 100))
140 self.assertRaises(ValueError, setattr, cs, "value", "123456789012345")
143 self.assertRaises(ValueError, setattr, cs, "value", "1234567")
189 self.assertRaises(ValueError, setattr, cs, "value", u"123456789012345")
192 self.assertRaises(ValueError, setattr, cs, "value", u"1234567")