Browse Source

Fix mutable default

pull/41/head
Nicolas Bessi 10 years ago
parent
commit
fc9a6042c9
  1. 4
      passport/tests/test_passport.py

4
passport/tests/test_passport.py

@ -33,10 +33,12 @@ class Base_Test_passport(TransactionCase):
Inherit from this and setup values. Inherit from this and setup values.
""" """
def setUp(self, vals={}):
def setUp(self, vals=None):
""" """
Setting up passport. Setting up passport.
""" """
if vals is None:
vals = {}
# Default test values # Default test values
self.vals = {'name': 'This is a test passport name', self.vals = {'name': 'This is a test passport name',
'number': 'A200124789', 'number': 'A200124789',

Loading…
Cancel
Save