From c1f03c2e90a0faf90c032cbe53033f782334ef80 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 16 Jan 2011 08:49:39 +0000 Subject: add test for partial match git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@47 9dea7c4f-944c-4273-ac1a-574ede026edc --- stdnum/numdb.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'stdnum/numdb.py') 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 -- cgit v1.2.3