diff options
| author | Jacob Kaplan-Moss | 2009-04-28 09:44:10 -0500 | 
|---|---|---|
| committer | Jacob Kaplan-Moss | 2009-04-28 09:44:10 -0500 | 
| commit | 3a16e5d48ce6125fd9e5fc6573ffb80bd540c697 (patch) | |
| tree | deb8af78788ec7a18eca3d53c6ac4649756d8008 /src/shorturls/baseconv.py | |
| parent | 8d062183fe97300fbc6583c3f0e21d340febd84b (diff) | |
| download | django-shorturls-3a16e5d48ce6125fd9e5fc6573ffb80bd540c697.tar.bz2 | |
Moved the baseconv tests into the test suite so they'll be run along with everythign else.
Diffstat (limited to 'src/shorturls/baseconv.py')
| -rw-r--r-- | src/shorturls/baseconv.py | 9 | 
1 files changed, 1 insertions, 8 deletions
| 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 | 
