Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

Commit

Permalink
#63: Add a simple test
Browse files Browse the repository at this point in the history
  • Loading branch information
blackandred committed Dec 8, 2020
1 parent 3f18ed8 commit 7e5c99c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/test_process.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env python3

from rkd.api.testing import BasicTestingCase
from rkd.process import carefully_decode


class TestProcess(BasicTestingCase):
def test_carefully_decode(self):
self.assertEqual(' world', carefully_decode(u'æ'.encode('cp1252') + b' world', 'utf-8'))

0 comments on commit 7e5c99c

Please sign in to comment.