updated imports in tests

This commit is contained in:
ilvalle
2016-06-02 14:28:21 +02:00
parent 01bab81432
commit a1fd92b7f8
45 changed files with 182 additions and 169 deletions
+4 -4
View File
@@ -5,13 +5,13 @@ Unit tests for IS_URL()
"""
import unittest
from fix_path import fix_sys_path
from .fix_path import fix_sys_path
fix_sys_path(__file__)
from validators import IS_URL, IS_HTTP_URL, IS_GENERIC_URL
from validators import unicode_to_ascii_authority
from gluon.validators import IS_URL, IS_HTTP_URL, IS_GENERIC_URL
from gluon.validators import unicode_to_ascii_authority
class TestIsUrl(unittest.TestCase):
@@ -296,7 +296,7 @@ class TestIsGenericUrl(unittest.TestCase):
def testInvalidUrls(self):
urlsToCheckA = []
for i in range(0, 32) + [127]:
for i in list(range(0, 32)) + [127]:
# Control characters are disallowed in any part of a URL