Commit bf3e7e65 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Fix a typo with backward compatibility.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31127 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bfb0ba58
......@@ -21,6 +21,7 @@ from cStringIO import StringIO
from cPickle import dumps
from glob import glob
from urllib import urlretrieve
from warnings import warn
# XXX make sure that get_request works.
current_app = None
......@@ -689,7 +690,7 @@ class ERP5TypeTestCase(backportUnittest.TestCase, PortalTestCase):
**person_kw)
return person
def createUserAssignement(self, user, assignment_kw):
def createUserAssignment(self, user, assignment_kw):
"""
Create an assignment to user.
"""
......@@ -697,6 +698,13 @@ class ERP5TypeTestCase(backportUnittest.TestCase, PortalTestCase):
assignment.open()
return assignment
def createUserAssignement(self, user, assignment_kw):
# BBB
warn('createUserAssignement is deprecated;'
'Use createUserAssignment instead',
DeprecationWarning)
return self.createUserAssignment(user, assignment_kw)
def failIfDifferentSet(self, a, b, msg=""):
if not msg:
msg='%r != %r' % (a, b)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment