title: Django test Client submitting a form with a POST request
body: <p>How can I submit a POST request with Django test Client, such that I include form data in it?
  In particular, I would like to have something like (inspired by <a href="https://stackoverflow.com/questions/7304248/how-should-i-write-tests-for-forms-in-django#">How should I write tests for Forms in Django?</a>):</p>
  
  <pre><code>from django.tests import TestCase
  
  class MyTests(TestCase):
      def test_forms(self):
          response = self.client.post("/my/form/", {'something':'something'})
  </code></pre>
  
  <p>My endpoint /my/form has some internal logic to deal with 'something'.
  The problem was that when trying to later access request.POST.get('something') I couldn't get anything.
  I found a solution so I'm sharing below.</p>