lists.arthurdejong.org
RSS feed

python-stdnum commit: r79 - python-stdnum/tests

[Date Prev][Date Next] [Thread Prev][Thread Next]

python-stdnum commit: r79 - python-stdnum/tests



Author: arthur
Date: Tue Sep 20 22:53:36 2011
New Revision: 79
URL: http://arthurdejong.org/viewvc/python-stdnum?revision=79&view=revision

Log:
fix space before inline comments

Modified:
   python-stdnum/tests/test_imei.doctest
   python-stdnum/tests/test_isan.doctest
   python-stdnum/tests/test_isbn.doctest
   python-stdnum/tests/test_ismn.doctest

Modified: python-stdnum/tests/test_imei.doctest
==============================================================================
--- python-stdnum/tests/test_imei.doctest       Tue Sep 20 22:52:03 2011        
(r78)
+++ python-stdnum/tests/test_imei.doctest       Tue Sep 20 22:53:36 2011        
(r79)
@@ -45,7 +45,7 @@
 'IMEISV'
 >>> imei.imei_type('35-417803-685978-9')
 'IMEI'
->>> imei.imei_type('35-417803-685978-2') is None # invalid check digit
+>>> imei.imei_type('35-417803-685978-2') is None  # invalid check digit
 True
 >>> imei.imei_type('3568680000414120')
 'IMEISV'

Modified: python-stdnum/tests/test_isan.doctest
==============================================================================
--- python-stdnum/tests/test_isan.doctest       Tue Sep 20 22:52:03 2011        
(r78)
+++ python-stdnum/tests/test_isan.doctest       Tue Sep 20 22:53:36 2011        
(r79)
@@ -67,9 +67,9 @@
 
 And these should be invalid:
 
->>> isan.is_valid('00000000D07A0090-Z') # wrong check digit
+>>> isan.is_valid('00000000D07A0090-Z')  # wrong check digit
 False
->>> isan.is_valid('3abc6800-0041X1-20') # illegal character
+>>> isan.is_valid('3abc6800-0041X1-20')  # illegal character
 False
 
 

Modified: python-stdnum/tests/test_isbn.doctest
==============================================================================
--- python-stdnum/tests/test_isbn.doctest       Tue Sep 20 22:52:03 2011        
(r78)
+++ python-stdnum/tests/test_isbn.doctest       Tue Sep 20 22:53:36 2011        
(r79)
@@ -27,17 +27,17 @@
 
 Tests for mangling and incorect check digits.
 
->>> isbn.is_valid('08515x-629-2') # added X in the middle
+>>> isbn.is_valid('08515x-629-2')  # added X in the middle
 False
->>> isbn.is_valid('85152-629-1') # incorrect check digit
+>>> isbn.is_valid('85152-629-1')  # incorrect check digit
 False
->>> isbn.is_valid('978-902453827X') # ISBN with X check digit
+>>> isbn.is_valid('978-902453827X')  # ISBN with X check digit
 False
 
 
 See if ISBN10 to 13 conversion works.
 
->>> isbn.to_isbn13('978-9024538270') # ISBN13 should stay ISBN13
+>>> isbn.to_isbn13('978-9024538270')  # ISBN13 should stay ISBN13
 '978-9024538270'
 >>> isbn.to_isbn13('1 85798218 5')
 '978 1 85798218 3'
@@ -53,9 +53,9 @@
 
 Regrouping tests.
 
->>> isbn.split('9024538270') # normal ISBN10
+>>> isbn.split('9024538270')  # normal ISBN10
 ('', '90', '245', '3827', '0')
->>> isbn.split('9999678270') # ISBN10, unknown publisher in group
+>>> isbn.split('9999678270')  # ISBN10, unknown publisher in group
 ('', '99996', '', '7827', '0')
 >>> isbn.split('979-20-1234567-8')
 ('979', '', '', '201234567', '8')

Modified: python-stdnum/tests/test_ismn.doctest
==============================================================================
--- python-stdnum/tests/test_ismn.doctest       Tue Sep 20 22:52:03 2011        
(r78)
+++ python-stdnum/tests/test_ismn.doctest       Tue Sep 20 22:53:36 2011        
(r79)
@@ -53,7 +53,7 @@
 
 See if 10 to 13 digit conversion works.
 
->>> ismn.to_ismn13('979-0-32176544-3') # ismn13 should stay ismn13
+>>> ismn.to_ismn13('979-0-32176544-3')  # ismn13 should stay ismn13
 '979-0-32176544-3'
 >>> ismn.to_ismn13('M-32176546-7')
 '979-0-32176546-7'
-- 
To unsubscribe send an email to
python-stdnum-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/python-stdnum-commits/