1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-13 03:22:22 -05:00
SickRage/cherrypy/test/test_compat.py
echel0n cec4ed573d Upgraded CherryPy libs to 3.3.0
Switched out sqlite3 libs in favour of SQLAlchemy v0.9, will gradually migrate dialects and scheme to be fully SQLAlchemy compliant for using there ORM with sessions instead of direct.

Fixed getEpisode function to stop making unrequired scene number conversions on already converted data thats available now from cache.
2014-06-04 18:28:59 -07:00

20 lines
434 B
Python

import unittest
import nose
from cherrypy import _cpcompat as compat
class StringTester(unittest.TestCase):
def test_ntob_non_native(self):
"""
ntob should raise an Exception on unicode.
(Python 2 only)
See #1132 for discussion.
"""
if compat.py3k:
raise nose.SkipTest("Only useful on Python 2")
self.assertRaises(Exception, compat.ntob, unicode('fight'))