Created
April 11, 2016 08:19
-
-
Save philippeowagner/f224f07cc21ee81952c4760dd3ae4b98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.test.client import RequestFactory | |
rf = RequestFactory() | |
get_request = rf.get('/hello/') | |
post_request = rf.post('/submit/', {'foo': 'bar'}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment