title: Python Unittest: Open and wait until the program is closed
body: <p>Currently I try to create an unit test which opens a file (with the corresponding application) and then the test-run should wait until the program is closed.</p>
  
  <pre><code>def test_HFG(self):
  #....
  print "please edit this file"
  os.chdir(r'C:\test\a')
  os.startfile("myfile.vdx")
  # here I need a "stop until the program is closed"-function
  #....
  </code></pre>
  
  <p>Does anyone have any idea how to realize(as simple as possible) my plan?</p>