Django - Testing Django Applications
Which of the following is the correct way to create a form instance with POST data in a Django test?
MyForm(request.POST).data=, incorrect for POST. form = MyForm(request.POST) correctly passes request.POST as the first argument. form = MyForm() creates an empty form without data.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions