Lines Matching refs:getargs_et
699 from _testcapi import getargs_et
700 self.assertEqual(getargs_et('abc\xe9'), 'abc\xe9')
701 self.assertEqual(getargs_et(u'abc'), 'abc')
702 self.assertEqual(getargs_et('abc', 'ascii'), 'abc')
703 self.assertEqual(getargs_et('abc\xe9', 'ascii'), 'abc\xe9')
704 self.assertEqual(getargs_et(u'abc\xe9', 'latin1'), 'abc\xe9')
705 self.assertRaises(UnicodeEncodeError, getargs_et, u'abc\xe9', 'ascii')
706 self.assertRaises(LookupError, getargs_et, u'abc', 'spam')
707 self.assertRaises(TypeError, getargs_et,
709 self.assertRaises(TypeError, getargs_et,
712 self.assertEqual(getargs_et(buffer('abc'), 'ascii'), 'abc')
713 self.assertEqual(getargs_et(buffer(u'abc'), 'ascii'), 'abc')
714 self.assertRaises(TypeError, getargs_et, None, 'latin1')
715 self.assertRaises(TypeError, getargs_et, 'nul:\0', 'latin1')
716 self.assertRaises(TypeError, getargs_et, u'nul:\0', 'latin1')