aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsimonw2009-04-28 07:28:25 -0700
committersimonw2009-04-28 07:28:25 -0700
commite34c575835c674772d7ffd54b5434fc0ae556539 (patch)
treeff24ef70d254736901db2fe91a7e1a7e17f237b9
parent6b4506871ac9b6e0a1aa5f59e2a07c873c122b6d (diff)
downloaddjango-shorturls-e34c575835c674772d7ffd54b5434fc0ae556539.tar.bz2
Now testing the hexconv convertor rather than the Python built-in hex() function
-rw-r--r--src/shorturls/baseconv.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shorturls/baseconv.py b/src/shorturls/baseconv.py
index 9012441..5796956 100644
--- a/src/shorturls/baseconv.py
+++ b/src/shorturls/baseconv.py
@@ -59,7 +59,6 @@ base62 = BaseConverter(
if __name__ == '__main__':
nums = [-10 ** 10, 10 ** 10] + range(-100, 100)
- for convertor in [bin, hex, base62]:
+ for convertor in [bin, hexconv, base62]:
for i in nums:
assert i == bin.to_decimal(bin.from_decimal(i)), '%s failed' % i
-