Make twisted/test/test_text pass under Python 3
|Reported by:||vperic||Owned by:||vperic|
(github, coverage, patch, buildbot, log)
As before, to actually make this actually run you need to import unittest from the library, not from trial, and then "python3.2 -m unittest twisted.test.test_text" will run the tests.
Replace calls to functions from the string module in favor of string methods (Refs: #4999); don't use the types module in favor of the "isinstance" function - types was changed in Python 3 to not include some base types, like dicts, lists and tuples.
This also required the addition of some tests.