From 3a16e5d48ce6125fd9e5fc6573ffb80bd540c697 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Tue, 28 Apr 2009 09:44:10 -0500 Subject: Moved the baseconv tests into the test suite so they'll be run along with everythign else. --- src/shorturls/baseconv.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/shorturls/baseconv.py') diff --git a/src/shorturls/baseconv.py b/src/shorturls/baseconv.py index 1b7efbd..ba2f759 100644 --- a/src/shorturls/baseconv.py +++ b/src/shorturls/baseconv.py @@ -55,11 +55,4 @@ bin = BaseConverter('01') hexconv = BaseConverter('0123456789ABCDEF') base62 = BaseConverter( 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz' -) - -if __name__ == '__main__': - nums = [-10 ** 10, 10 ** 10] + range(-100, 100) - for c in [bin, hexconv, base62]: - for i in nums: - assert i == c.to_decimal(c.from_decimal(i)), '%s failed' % i - +) \ No newline at end of file -- cgit v1.2.3