2 # -*- encoding: utf-8 -*-
10 class CoreColaUnicodeTestCase(unittest
.TestCase
):
11 """Tests the cola.core module's unicode handling
14 def test_core_decode(self
):
15 """Test the core.decode function
17 filename
= helper
.fixture('unicode.txt')
19 content
= core
.read_nointr(fh
).strip()
21 self
.assertEqual(core
.decode(content
), u
'unicøde')
23 def test_core_encode(self
):
24 """Test the core.encode function
26 filename
= helper
.fixture('unicode.txt')
28 content
= core
.read_nointr(fh
).strip()
30 self
.assertEqual(content
, core
.encode(u
'unicøde'))
33 if __name__
== '__main__':