"""
Make sure stop actually stops a controller, and properly sets appropriate fields
"""

include controller.repy
    
if callfunc == 'intialize':
  c = Controller()
  c.start(getmyip(),12345)
  c.stop()
  
  assert len(c.connections) == 0
  assert c.comm_handle is None
  assert c.ip is None
  assert c.port is None 