title: Cant trigger a view's breakpoint in django tests
body: <p>I want to debug a view that gets triggered inside a django tests.py
  Here's the view code:</p>
  <pre><code>def test_view(request):
      if request.method == &quot;POST&quot;:
          with open(&quot;a_path_to_the_file/aaa.txt&quot;, &quot;w&quot;) as f:
              f.write(&quot;done!&quot;)
  </code></pre>
  <p>Here's the test:</p>
  <pre><code>class ViewsTests(TestCase):
      def test_add_address(self):
          self.client.post(reverse(&quot;address_book:test_view&quot;))
  </code></pre>
  <p>The view just doesn't run in that way. I want the file to be created after I run the test. The breakpoint is set on the <code>if request.method == &quot;POST&quot;:</code> line.
  I use pycharm and run tests via pycharnm run config.</p>