From ea3462fc685ecb7c93ae4d82dd25e1a7cda4f63a Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Sun, 18 Aug 2013 22:33:21 +0300 Subject: Added some doctests --- gsxws/core.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gsxws') 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') -- cgit v1.2.3