Hi
I got the same issue.
from django.test import TestCase
class AccountViewTest(TestCase):
def test_account_register(self):
user_data_dict={
'username':'userwerthrthh',
'
email':'ro...@localhost.localdomain.com',
'password':'psdfsdppps',
'password2':'psdfsdppps',
'user_group_id':2,
'name':'Test User',
'nip':4918851570,
'regon':970931428,
'description':'rtrt rty y',
'city':'sdfg dfggh',
'street':'fdsf dsfg sdfg',
'postcode':111,
}
self.client.post('/account/register/', user_data_dict)
----------------------------------------------------------------------
account/tests.py", line 37, in test_account_register
self.client.post('/account/register/', user_data_dict)
File "/usr/lib/python2.5/site-packages/django/test/client.py", line
243, in post
return self.request(**r)
File "/usr/lib/python2.5/site-packages/django/test/client.py", line
171, in request
response = self.handler(environ)
File "/usr/lib/python2.5/site-packages/django/test/client.py", line
40, in __call__
response = self.get_response(request)
File "/usr/lib/python2.5/site-packages/django/core/handlers/
base.py", line 126, in get_response
subject = 'Error (%s IP): %s' % ((request.META.get('REMOTE_ADDR')
in settings.INTERNAL_IPS and 'internal' or 'EXTERNAL'), request.path)
TypeError: 'in <string>' requires string as left operand
----------------------------------------------------------------------
If I change a key called 'street' to 'whotever' or replace @ in email
value it works.
any ideas why?
cheers,
Paul