Skip to content

Commit

Permalink
Test that unicode stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Jan 30, 2014
1 parent ef09c40 commit 9b394d5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions taskw/test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ def test_with_backslashes(self):
r = decode_task(encode_task(decode_task(line)))
eq_(r, expected)

def test_with_unicode(self):
expected = {u'andthis': u'has a fucking \\backslash in it'}
line = r'[andthis:"has a fucking \\backslash in it"]'
r = decode_task(line)
eq_(r, expected)
r = decode_task(encode_task(decode_task(line)))
eq_(r, expected)

def test_decode(self):
r = decode_task(encode_task(TASK))
eq_(r, TASK)
Expand Down

0 comments on commit 9b394d5

Please sign in to comment.