diff options
author | Filipp Lepalaan <f@230.to> | 2013-08-18 22:33:21 +0300 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2013-08-18 22:33:21 +0300 |
commit | ea3462fc685ecb7c93ae4d82dd25e1a7cda4f63a (patch) | |
tree | 2d198e0dedb5552064e767f05879f4ad73afd8b6 | |
parent | 70039c9cb3cb0b6c70ea1c7241451a3ea45a13d5 (diff) | |
download | py-gsxws-ea3462fc685ecb7c93ae4d82dd25e1a7cda4f63a.tar.gz py-gsxws-ea3462fc685ecb7c93ae4d82dd25e1a7cda4f63a.tar.bz2 py-gsxws-ea3462fc685ecb7c93ae4d82dd25e1a7cda4f63a.zip |
Added some doctests
-rw-r--r-- | gsxws/core.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gsxws/core.py b/gsxws/core.py index 0bf5308..67cf181 100644 --- a/gsxws/core.py +++ b/gsxws/core.py @@ -103,6 +103,10 @@ def validate(value, what=None): >>> validate('XD368Z/A', 'partNumber') True + >>> validate('ZM661-5883', 'partNumber') + True + >>> validate('B661-6909', 'partNumber') + True >>> validate('blaa', 'serialNumber') False >>> validate('MacBook Pro (Retina, Mid 2012)', 'productName') |