"""
Make sure unregister doesn't work on stopped controllers
"""

include controller.repy

class Stub:
  def __init__(self, port):
    self.port = port
    
if callfunc == 'intialize':
  c = Controller()
  c.start(getmyip(), 12345)
  c.stop()
  try:
    c.stop()
  except ControllerStoppedError:
    pass
  else:
    print "Controller.stop twice"
