Skip to content

Commit

Permalink
The str also checks kanji.
Browse files Browse the repository at this point in the history
  • Loading branch information
mnooner256 committed May 4, 2015
1 parent d98dba4 commit 37cd3f9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_qrcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Different tests against the PyQRCode package.
"""
from __future__ import unicode_literals
from nose.tools import eq_, raises
from nose.tools import eq_, raises, ok_
import pyqrcode


Expand Down Expand Up @@ -126,7 +126,11 @@ def test_kanji_bytes():

def test_to_str():
s = 'Märchen'
str(pyqrcode.create(s))
ok_(str(pyqrcode.create(s)))

s = '外来語'
qr = pyqrcode.create(s)
ok_(str(pyqrcode.create(s)))


@raises(ValueError)
Expand Down

0 comments on commit 37cd3f9

Please sign in to comment.