Lines Matching refs:getargs_es
679 from _testcapi import getargs_es
680 self.assertEqual(getargs_es('abc'), 'abc')
681 self.assertEqual(getargs_es(u'abc'), 'abc')
682 self.assertEqual(getargs_es('abc', 'ascii'), 'abc')
683 self.assertEqual(getargs_es(u'abc\xe9', 'latin1'), 'abc\xe9')
684 self.assertRaises(UnicodeEncodeError, getargs_es, u'abc\xe9', 'ascii')
685 self.assertRaises(LookupError, getargs_es, u'abc', 'spam')
686 self.assertRaises(TypeError, getargs_es,
688 self.assertRaises(TypeError, getargs_es,
691 self.assertEqual(getargs_es(buffer('abc'), 'ascii'), 'abc')
692 self.assertEqual(getargs_es(buffer(u'abc'), 'ascii'), 'abc')
693 self.assertRaises(TypeError, getargs_es, None, 'latin1')
694 self.assertRaises(TypeError, getargs_es, 'nul:\0', 'latin1')
695 self.assertRaises(TypeError, getargs_es, u'nul:\0', 'latin1')