diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2011-01-16 09:49:39 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2011-01-16 09:49:39 +0100 |
commit | c1f03c2e90a0faf90c032cbe53033f782334ef80 (patch) | |
tree | 10704abe0bec1adeeef6cc383f12d2d463d90faa /stdnum/numdb.py | |
parent | 81a99d3b1a9856e1098cec498a40b5aec50e990c (diff) |
add test for partial match
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@47 9dea7c4f-944c-4273-ac1a-574ede026edc
Diffstat (limited to 'stdnum/numdb.py')
-rw-r--r-- | stdnum/numdb.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stdnum/numdb.py b/stdnum/numdb.py index 5d1c8f6..7bdd742 100644 --- a/stdnum/numdb.py +++ b/stdnum/numdb.py @@ -49,6 +49,9 @@ To split the number and get properties for each part: [('90', {'prop1': 'booz'}), ('985', {'prop2': 'fooz'}), ('6', {})] >>> dbfile.info('9889') [('98', {'prop1': 'booz'}), ('89', {'prop2': 'foo'})] +>>> dbfile.info('633322') +[('6', {'prop1': 'boo'}), ('333', {'prop2': 'bar', 'prop3': 'baz'}), ('22', {})] + """ import re |