'When passed an encoding, however, the L{codecs} module returns unicode.'

def test_codecsOpenText(self):

    with codecs.open(self.mktemp(), 'wb', encoding='utf-8') as f:
        self.assertEqual(ioType(f), unicodeCompat)
