ERROR testActivation users tests RegistrationModelTes ts -------------

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
======================================================================
ERROR: testActivation (users.tests.RegistrationModelTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/binary/trunk/aguila/apps/users/tests.py", line 97, in testActivation
RegistrationProfile.objects.get(user=self.user).activation_key).pk,
File "/home/binary/trunk/aguila/apps/users/models.py", line 43, in activate_user
user_activated.send(sender=self.model, user=user)
File "/home/binary/trunk/aguila/libs/django/django/dispatch/dispatcher.py", line 166, in send
response = receiver(signal=self, sender=sender, **named)
File "/home/binary/trunk/aguila/apps/city/models.py", line 311, in create_city
y=random.randint(-399,399))
File "/home/binary/trunk/aguila/libs/django/django/db/models/manager.py", line 120, in get
return self.get_query_set().get(*args, **kwargs)
File "/home/binary/trunk/aguila/libs/django/django/db/models/query.py", line 305, in get
% self.model._meta.object_name)
DoesNotExist: City matching query does not exist.
======================================================================
ERROR: testActivation (users.tests.RegistrationViewTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/binary/trunk/aguila/apps/users/tests.py", line 239, in testActivation
kwargs={ 'activation_key': activation_key }))
File "/home/binary/trunk/aguila/libs/django/django/test/client.py", line 281, in get
response = self.request(**r)
File "/home/binary/trunk/aguila/libs/django/django/test/client.py", line 225, in request
response = self.handler(environ)
File "/home/binary/trunk/aguila/libs/django/django/test/client.py", line 69, in __call__
response = self.get_response(request)
File "/home/binary/trunk/aguila/libs/django/django/core/handlers/base.py", line 134, in get_response
return self.handle_uncaught_exception(request, resolver, exc_info)
File "/home/binary/trunk/aguila/libs/django/django/core/handlers/base.py", line 166, in handle_uncaught_exception
return callback(request, **param_dict)
File "/home/binary/trunk/aguila/libs/django/django/views/defaults.py", line 24, in server_error
return http.HttpResponseServerError(t.render(Context({})))
File "/home/binary/trunk/aguila/libs/django/django/test/utils.py", line 29, in instrumented_test_render
return self.nodelist.render(context)
File "/home/binary/trunk/aguila/libs/django/django/template/__init__.py", line 779, in render
bits.append(self.render_node(node, context))
File "/home/binary/trunk/aguila/libs/django/django/template/__init__.py", line 792, in render_node
return node.render(context)
File "/home/binary/trunk/aguila/libs/django/django/template/loader_tags.py", line 97, in render
return compiled_parent.render(context)
File "/home/binary/trunk/aguila/libs/django/django/test/utils.py", line 29, in instrumented_test_render
return self.nodelist.render(context)
File "/home/binary/trunk/aguila/libs/django/django/template/__init__.py", line 779, in render
bits.append(self.render_node(node, context))
File "/home/binary/trunk/aguila/libs/django/django/template/__init__.py", line 792, in render_node
return node.render(context)
File "/home/binary/trunk/aguila/libs/django/django/template/defaulttags.py", line 244, in render
return self.nodelist_false.render(context)
File "/home/binary/trunk/aguila/libs/django/django/template/__init__.py", line 779, in render
bits.append(self.render_node(node, context))
File "/home/binary/trunk/aguila/libs/django/django/template/__init__.py", line 792, in render_node
return node.render(context)
File "/home/binary/trunk/aguila/libs/django/django/template/defaulttags.py", line 382, in render
raise e
NoReverseMatch: Reverse for 'users_show_cities' with arguments '('',)' and keyword arguments '{}' not found.