Skip to content

Commit

Permalink
Assert, don't print. And a proper encoding for the tests module. #8
Browse files Browse the repository at this point in the history
  • Loading branch information
stchris committed Mar 22, 2013
1 parent 1cb3775 commit 7107956
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/tests.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import unittest
import untangle
Expand Down Expand Up @@ -203,7 +204,7 @@ class UnicodeTestCase(unittest.TestCase):
""" Github issue #8: UnicodeEncodeError """
def test_unicode_file(self):
o = untangle.parse('tests/res/unicode.xml')
print o.page.menu.name
self.assertEquals(u'ðÒÉ×ÅÔ ÍÉÒ', o.page.menu.name)

if __name__ == '__main__':
unittest.main()
Expand Down

0 comments on commit 7107956

Please sign in to comment.