1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-14 05:15:12 -05:00
SickRage/tests/encoding_tests.py

31 lines
833 B
Python
Raw Normal View History

# coding=utf-8
import unittest
import sys, os.path
sys.path.append(os.path.abspath('..'))
sys.path.append(os.path.abspath('../lib'))
import sickbeard
from sickbeard import encodingKludge as ek
from sickbeard.exceptions import ex
sickbeard.SYS_ENCODING = 'UTF-8'
DEBUG = VERBOSE = False
class EncodingTests(unittest.TestCase):
def test_encoding(self):
strings = [u'Les Enfants De La Télé']
for s in strings:
try:
print 'Encoded: ' + ek.ss(s)
except Exception, e:
ex(e)
if __name__ == "__main__":
print "=================="
print "STARTING - Encoding TESTS"
print "=================="
print "######################################################################"
suite = unittest.TestLoader().loadTestsFromTestCase(EncodingTests)