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