title: Can you close an FTP (ftplib) connection while downloading a file to simulate connection problems in Python 2.7
body: <p>I'm writing a test suite in py.test for a class that uses ftplib and such for FTP things.  I need to disrupt the connection I'm using to simulate network problems and cover an exception. Please note, for this project I was required to use a real FTP server instead of mocks, so mocks won't help (I think).</p>
  
  <p>Is there a simple way I can interrupt the port / socket to simulate problems?</p>
  
  <p>Thanks for your time</p>