Lines Matching refs:getargs_p
440 from _testcapi import getargs_p
441 self.assertEqual(0, getargs_p(False))
442 self.assertEqual(0, getargs_p(None))
443 self.assertEqual(0, getargs_p(0))
444 self.assertEqual(0, getargs_p(0.0))
445 self.assertEqual(0, getargs_p(0j))
446 self.assertEqual(0, getargs_p(''))
447 self.assertEqual(0, getargs_p(()))
448 self.assertEqual(0, getargs_p([]))
449 self.assertEqual(0, getargs_p({}))
451 self.assertEqual(1, getargs_p(True))
452 self.assertEqual(1, getargs_p(1))
453 self.assertEqual(1, getargs_p(1.0))
454 self.assertEqual(1, getargs_p(1j))
455 self.assertEqual(1, getargs_p('x'))
456 self.assertEqual(1, getargs_p((1,)))
457 self.assertEqual(1, getargs_p([1]))
458 self.assertEqual(1, getargs_p({1:2}))
459 self.assertEqual(1, getargs_p(unittest.TestCase))
461 self.assertRaises(NotImplementedError, getargs_p, Paradox())