Lines Matching refs:getargs_H
172 from _testcapi import getargs_H
174 self.assertRaises(TypeError, getargs_H, 3.14)
175 self.assertEqual(99, getargs_H(Int()))
176 self.assertEqual(0, getargs_H(IntSubclass()))
177 self.assertRaises(TypeError, getargs_H, BadInt())
179 self.assertEqual(1, getargs_H(BadInt2()))
180 self.assertEqual(0, getargs_H(BadInt3()))
182 self.assertEqual(USHRT_MAX, getargs_H(-1))
183 self.assertEqual(0, getargs_H(0))
184 self.assertEqual(USHRT_MAX, getargs_H(USHRT_MAX))
185 self.assertEqual(0, getargs_H(USHRT_MAX+1))
187 self.assertEqual(42, getargs_H(42))
189 self.assertEqual(VERY_LARGE & USHRT_MAX, getargs_H(VERY_LARGE))