Lines Matching refs:getargs_k
212 from _testcapi import getargs_k
215 self.assertRaises(TypeError, getargs_k, 3.14)
216 self.assertRaises(TypeError, getargs_k, Int())
217 self.assertEqual(0, getargs_k(IntSubclass()))
218 self.assertRaises(TypeError, getargs_k, BadInt())
219 self.assertRaises(TypeError, getargs_k, BadInt2())
220 self.assertEqual(0, getargs_k(BadInt3()))
222 self.assertEqual(ULONG_MAX, getargs_k(-1))
223 self.assertEqual(0, getargs_k(0))
224 self.assertEqual(ULONG_MAX, getargs_k(ULONG_MAX))
225 self.assertEqual(0, getargs_k(ULONG_MAX+1))
227 self.assertEqual(42, getargs_k(42))
229 self.assertEqual(VERY_LARGE & ULONG_MAX, getargs_k(VERY_LARGE))