We should be using amo.urlresolvers
This commit is contained in:
Родитель
ca867325a9
Коммит
5751918157
|
@ -5,12 +5,13 @@ import re
|
|||
import string
|
||||
|
||||
from django.conf import settings
|
||||
from django.core.urlresolvers import reverse
|
||||
from django.contrib.auth.models import User as DjangoUser
|
||||
from django.db import models
|
||||
|
||||
import amo
|
||||
import amo.models
|
||||
|
||||
from amo.urlresolvers import reverse
|
||||
from translations.fields import PurifiedField
|
||||
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
|
||||
from django.core.urlresolvers import reverse
|
||||
from nose.tools import eq_
|
||||
|
||||
from amo.urlresolvers import reverse
|
||||
from users.helpers import emaillink, user_link, users_list
|
||||
from users.models import UserProfile
|
||||
|
||||
|
@ -13,8 +13,8 @@ def test_emaillink():
|
|||
obfuscated = unicode(emaillink(email))
|
||||
|
||||
# remove junk
|
||||
m = re.match(r'<span class="emaillink">(.*?)<span class="i">null</span>(.*)'
|
||||
'</span>', obfuscated)
|
||||
m = re.match(r'<span class="emaillink">(.*?)<span class="i">null</span>'
|
||||
'(.*)</span>', obfuscated)
|
||||
obfuscated = (''.join((m.group(1), m.group(2)))
|
||||
.replace('@', '@').replace('.', '.'))[::-1]
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче