title: How do I run doctests with PyCharm?
body: <p>In the PyCharm IDE, if I right-click on a function/method with a doctest, sometimes the right-click menu will give me the option: "<strong>Run 'Doctest my_function_name'</strong>" and sometimes the right-click menu, instead, only gives the option to run the whole file (NOT as a doctest).</p>
  
  <p>What determines when it will give the "run doctest" option and when it will not?  Is there a way to force it one way or the other?</p>