3c53d87a9515c81df25b818e577d7dce66f18f90,django/comicsite/tests.py,ViewsTest,_signup_user,#ViewsTest#Any#,152
Before Change
form = signup_user(data)
self.assertTrue(form.is_valid(), "could not create user 1. reason: %s"
% form.errors)
query_result = User.objects.filter(username=form.data["username"])
return query_result[0]
After Change
data = {"first_name":"test",
"last_name":"test",
"username":"test",
"email":"test@test.com",
"password1":"test",
"password2":"test",
"institution":"test",
"department":"test",
"country":"NL",
"website":"testwebsite",
"comicsite":"testcomicwebsite"}
data.update(overwrite_data) //overwrite any key in default if in data
signin_page = self.client.post(reverse("userena.views.signup"),data)
// check whether signin succeeded. If succeeded the response will be a
// httpResponseRedirect object, which has a "Location" key in its
// items(). Don"t know how to better check for type here.
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: comic/grand-challenge.org
Commit Name: 3c53d87a9515c81df25b818e577d7dce66f18f90
Time: 2013-07-08
Author: w.s.kerkstra@gmail.com
File Name: django/comicsite/tests.py
Class Name: ViewsTest
Method Name: _signup_user
Project Name: comic/grand-challenge.org
Commit Name: 6499769919b50f645fd3d76623225eacf0cd141d
Time: 2013-07-08
Author: w.s.kerkstra@gmail.com
File Name: django/comicsite/tests.py
Class Name: ViewsTest
Method Name: _signup_user
Project Name: RasaHQ/rasa
Commit Name: 87826c4ccb971911752adbc4bdac8d3e7c28989e
Time: 2019-01-21
Author: tom@rasa.com
File Name: tests/test_channels.py
Class Name:
Method Name: test_callback_calls_endpoint
Project Name: RasaHQ/rasa
Commit Name: 87826c4ccb971911752adbc4bdac8d3e7c28989e
Time: 2019-01-21
Author: tom@rasa.com
File Name: tests/test_actions.py
Class Name:
Method Name: test_remote_action_runs