title: Run part of Python unit tests on remote Linux machine from a Windows host
body: <p>My situation goes like this:</p>
  
  <ul>
  <li>I have a windows-based server program and a linux-based client.</li>
  <li>I have many tests for the linux clients which run and are required to run on local linux machines</li>
  <li>I need to run some code from windows server machine which will send some messages to the linux clients. Then, a test shall be executed on linux client machines which verifies the effect of those messages</li>
  </ul>
  
  <p>So a typical test case would look like this, running on windows host:</p>
  
  <pre><code>test_example_message(self):
      # has to be executed locally on windows server
      send_message(EXAMPLE, hosts)
      # has to be executed locally on linux clients
      for host in hosts:
          verify_message_effect(EXAMPLE, host)
  </code></pre>
  
  <p>I have found that <strong>pytest-xdist</strong> is somehow able to do that.</p>
  
  <p>I there any good tutorial or code example on how to use it?</p>