Skip to content

Commit

Permalink
Updated issue #18 test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
heuer committed Sep 1, 2016
1 parent f622293 commit 72a3d4f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/test_issue18.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,28 @@ def test_issue_18_automatic():
assert 'M' == qr.error


def test_issue_18_zero():
qr = segno.make_qr(0)
assert 1 == qr.version
assert 'numeric' == qr.mode
assert 'H' == qr.error


def test_issue_18_zero_micro():
qr = segno.make_micro(0)
assert 'M1' == qr.version
assert 'numeric' == qr.mode
assert qr.error is None


def test_issue_18_zero_automatic():
qr = segno.make(0)
assert 'M1' == qr.version
assert 'numeric' == qr.mode
assert qr.error is None



if __name__ == '__main__':
import pytest
pytest.main([__file__])
Expand Down

0 comments on commit 72a3d4f

Please sign in to comment.