title: How can I write unit tests against code that uses QDesktopServices openUrl?
body: <p>I'm working on a python (3.5) program that use a PyQt5 GUI. In the GUI, I need to add some help links to the documentation on a website. I manage to make it work with: </p>
  
  <pre><code>QDesktopServices.openUrl(QUrl("my_url"))
  </code></pre>
  
  <p>It works fine but I want to be sure that it will always be the case. </p>
  
  <p>A quick and dirty unittest is to call the function and simply notice that there is no error. I would like to make a test that will check that the correct website page did show up. What should I use?</p>