old_contents: """ Multicast DNS Service Discovery for Python, v0.14-wmcbrine
      Copyright 2003 Paul Scott-Murphy, 2014 William McBrine
  
      This module provides a unit test suite for the Multicast DNS
      Service Discovery for Python module.
  
      This library is free software; you can redistribute it and/or
      modify it under the terms of the GNU Lesser General Public
      License as published by the Free Software Foundation; either
      version 2.1 of the License, or (at your option) any later version.
  
      This library is distributed in the hope that it will be useful,
      but WITHOUT ANY WARRANTY; without even the implied warranty of
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
      Lesser General Public License for more details.
  
      You should have received a copy of the GNU Lesser General Public
      License along with this library; if not, write to the Free Software
      Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 
      USA
  	
  """
  
  __author__ = 'Paul Scott-Murphy'
  __maintainer__ = 'William McBrine <wmcbrine@gmail.com>'
  __version__ = '0.14-wmcbrine'
  __license__ = 'LGPL'
  
  from zeroconf import *
  import socket
  
  desc = {'path':'/~paulsm/'}
  info = ServiceInfo("_http._tcp.local.", "Paul's Test Web Site._http._tcp.local.", socket.inet_aton("10.0.1.2"), 80, 0, 0, desc, "ash-2.local.")
  
  r = Zeroconf()
  print "Registration of a service..."
  r.registerService(info)
  print "Waiting..."
  
new_contents: from zeroconf import *
  import socket
  
  desc = {'path': '/~paulsm/'}
  
  info = ServiceInfo("_http._tcp.local.",
                     "Paul's Test Web Site._http._tcp.local.",
                     socket.inet_aton("10.0.1.2"), 80, 0, 0,
                     desc, "ash-2.local.")
  
  r = Zeroconf()
  print "Registration of a service..."
  r.registerService(info)
  raw_input("Waiting (press Enter to exit)...")
  print "Unregistering..."
  r.unregisterService(info)
  r.close()
  
subject: Allow graceful exit from announcement test.