aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--brevisurl/tests/test_models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/brevisurl/tests/test_models.py b/brevisurl/tests/test_models.py
index 43745c4..f4af452 100644
--- a/brevisurl/tests/test_models.py
+++ b/brevisurl/tests/test_models.py
@@ -1,4 +1,4 @@
-from random import sample
+import random
import string
from django.core.exceptions import ValidationError
@@ -44,7 +44,7 @@ class TestModels(TestCase):
self.connection = get_connection('brevisurl.backends.local.BrevisUrlBackend')
self.short_url = ShortUrl()
self.short_url.original_url = 'www.codescale{0}.com'.format(_random_string(
- brevisurl.settings.LOCAL_BACKEND_ORIGINAL_URL_MAX_LENGTH + 1))
+ brevisurl.settings.LOCAL_BACKEND_ORIGINAL_URL_MAX_LENGTH))
self.short_url.shortened_url = '{0}://{1}/12345'.format(brevisurl.settings.LOCAL_BACKEND_DOMAIN_PROTOCOL,
self.site.domain)
self.short_url.backend = self.connection.class_path