Lines Matching refs:getargs_I
192 from _testcapi import getargs_I
194 self.assertRaises(TypeError, getargs_I, 3.14)
195 self.assertEqual(99, getargs_I(Int()))
196 self.assertEqual(0, getargs_I(IntSubclass()))
197 self.assertRaises(TypeError, getargs_I, BadInt())
199 self.assertEqual(1, getargs_I(BadInt2()))
200 self.assertEqual(0, getargs_I(BadInt3()))
202 self.assertEqual(UINT_MAX, getargs_I(-1))
203 self.assertEqual(0, getargs_I(0))
204 self.assertEqual(UINT_MAX, getargs_I(UINT_MAX))
205 self.assertEqual(0, getargs_I(UINT_MAX+1))
207 self.assertEqual(42, getargs_I(42))
209 self.assertEqual(VERY_LARGE & UINT_MAX, getargs_I(VERY_LARGE))