Home
last modified time | relevance | path

Searched refs:PersonW (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/ctypes/test/
Dtest_structures.py298 class PersonW(Structure): class
302 p = PersonW(u"Someone")
305 self.assertEqual(PersonW(u"1234567890").name, u"1234567890")
306 self.assertEqual(PersonW(u"12345678901").name, u"12345678901")
308 self.assertEqual(PersonW(u"123456789012").name, u"123456789012")
310 self.assertRaises(ValueError, PersonW, u"1234567890123")
/external/python/cpython3/Lib/ctypes/test/
Dtest_structures.py308 class PersonW(Structure): class
312 p = PersonW("Someone \xe9")
315 self.assertEqual(PersonW("1234567890").name, "1234567890")
316 self.assertEqual(PersonW("12345678901").name, "12345678901")
318 self.assertEqual(PersonW("123456789012").name, "123456789012")
320 self.assertRaises(ValueError, PersonW, "1234567890123")