Lines Matching refs:ts

13 ts=_test_structmembersType(False, 1, 2, 3, 4, 5, 6, 7, 8,  variable
19 ts.T_BOOL = True
20 self.assertEqual(ts.T_BOOL, True)
21 ts.T_BOOL = False
22 self.assertEqual(ts.T_BOOL, False)
23 self.assertRaises(TypeError, setattr, ts, 'T_BOOL', 1)
26 ts.T_BYTE = CHAR_MAX
27 self.assertEqual(ts.T_BYTE, CHAR_MAX)
28 ts.T_BYTE = CHAR_MIN
29 self.assertEqual(ts.T_BYTE, CHAR_MIN)
30 ts.T_UBYTE = UCHAR_MAX
31 self.assertEqual(ts.T_UBYTE, UCHAR_MAX)
34 ts.T_SHORT = SHRT_MAX
35 self.assertEqual(ts.T_SHORT, SHRT_MAX)
36 ts.T_SHORT = SHRT_MIN
37 self.assertEqual(ts.T_SHORT, SHRT_MIN)
38 ts.T_USHORT = USHRT_MAX
39 self.assertEqual(ts.T_USHORT, USHRT_MAX)
42 ts.T_INT = INT_MAX
43 self.assertEqual(ts.T_INT, INT_MAX)
44 ts.T_INT = INT_MIN
45 self.assertEqual(ts.T_INT, INT_MIN)
46 ts.T_UINT = UINT_MAX
47 self.assertEqual(ts.T_UINT, UINT_MAX)
50 ts.T_LONG = LONG_MAX
51 self.assertEqual(ts.T_LONG, LONG_MAX)
52 ts.T_LONG = LONG_MIN
53 self.assertEqual(ts.T_LONG, LONG_MIN)
54 ts.T_ULONG = ULONG_MAX
55 self.assertEqual(ts.T_ULONG, ULONG_MAX)
57 @unittest.skipUnless(hasattr(ts, "T_LONGLONG"), "long long not present")
59 ts.T_LONGLONG = LLONG_MAX
60 self.assertEqual(ts.T_LONGLONG, LLONG_MAX)
61 ts.T_LONGLONG = LLONG_MIN
62 self.assertEqual(ts.T_LONGLONG, LLONG_MIN)
64 ts.T_ULONGLONG = ULLONG_MAX
65 self.assertEqual(ts.T_ULONGLONG, ULLONG_MAX)
68 ts.T_LONGLONG = 3
69 self.assertEqual(ts.T_LONGLONG, 3)
70 ts.T_ULONGLONG = 4
71 self.assertEqual(ts.T_ULONGLONG, 4)
74 self.assertEqual(ts.T_STRING_INPLACE, "hi")
75 self.assertRaises(TypeError, setattr, ts, "T_STRING_INPLACE", "s")
76 self.assertRaises(TypeError, delattr, ts, "T_STRING_INPLACE")
83 ts.T_BYTE = CHAR_MAX+1
87 ts.T_BYTE = CHAR_MIN-1
91 ts.T_UBYTE = UCHAR_MAX+1
95 ts.T_SHORT = SHRT_MAX+1
99 ts.T_SHORT = SHRT_MIN-1
103 ts.T_USHORT = USHRT_MAX+1