We should be using amo.urlresolvers

This commit is contained in:
Dave Dash 2010-02-23 15:26:11 -08:00
Родитель ca867325a9
Коммит 5751918157
2 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -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('&#x0040;', '@').replace('&#x002E;', '.'))[::-1]