def METHOD_NAME(self):
    self.nodes[LEADER].start()
    self.simulator.go(config.LEADER_STARTUP_DELAY)
    self.assertEqual(self.nodes[LEADER].get_state(), 'leader')
    self.nodes[ROUTER1].start()
    self.nodes[ROUTER2].start()
    self.simulator.go(config.ROUTER_STARTUP_DELAY)
    self.assertEqual(self.nodes[ROUTER1].get_state(), 'router')
    self.assertEqual(self.nodes[ROUTER2].get_state(), 'router')
    self.assertEqual(self.hasAloc(LEADER, SRV_0_ID), False)
    self.assertEqual(self.hasAloc(LEADER, SRV_1_ID), False)
    self.assertEqual(self.hasAloc(ROUTER1, SRV_0_ID), False)
    self.assertEqual(self.hasAloc(ROUTER1, SRV_1_ID), False)
    self.assertEqual(self.hasAloc(ROUTER2, SRV_0_ID), False)
    self.assertEqual(self.hasAloc(ROUTER2, SRV_1_ID), False)
    self.nodes[ROUTER1].add_service(SRV_0_ENT_NUMBER, SRV_0_SERVICE_DATA, SRV_0_SERVER_DATA)
    self.nodes[ROUTER1].register_netdata()
    self.simulator.go(2)
    self.assertEqual(self.hasAloc(LEADER, SRV_0_ID), False)
    self.assertEqual(self.hasAloc(LEADER, SRV_1_ID), False)
    self.assertEqual(self.hasAloc(ROUTER1, SRV_0_ID), True)
    self.assertEqual(self.hasAloc(ROUTER1, SRV_1_ID), False)
    self.assertEqual(self.hasAloc(ROUTER2, SRV_0_ID), False)
    self.assertEqual(self.hasAloc(ROUTER2, SRV_1_ID), False)
    aloc0 = self.nodes[ROUTER1].get_ip6_address(config.ADDRESS_TYPE.ALOC)[0]
    self.pingFromAll(aloc0)
    self.nodes[LEADER].add_service(SRV_0_ENT_NUMBER, SRV_0_SERVICE_DATA, SRV_0_SERVER_DATA)
    self.nodes[LEADER].register_netdata()
    self.simulator.go(2)
    self.assertEqual(self.hasAloc(LEADER, SRV_0_ID), True)
    self.assertEqual(self.hasAloc(LEADER, SRV_1_ID), False)
    self.assertEqual(self.hasAloc(ROUTER1, SRV_0_ID), True)
    self.assertEqual(self.hasAloc(ROUTER1, SRV_1_ID), False)
    self.assertEqual(self.hasAloc(ROUTER2, SRV_0_ID), False)
    self.assertEqual(self.hasAloc(ROUTER2, SRV_1_ID), False)
    self.pingFromAll(aloc0)
    self.nodes[ROUTER2].add_service(SRV_1_ENT_NUMBER, SRV_1_SERVICE_DATA, SRV_1_SERVER_DATA)
    self.nodes[ROUTER2].register_netdata()
    self.simulator.go(2)
    self.assertEqual(self.hasAloc(LEADER, SRV_0_ID), True)
    self.assertEqual(self.hasAloc(LEADER, SRV_1_ID), False)
    self.assertEqual(self.hasAloc(ROUTER1, SRV_0_ID), True)
    self.assertEqual(self.hasAloc(ROUTER1, SRV_1_ID), False)
    self.assertEqual(self.hasAloc(ROUTER2, SRV_0_ID), False)
    self.assertEqual(self.hasAloc(ROUTER2, SRV_1_ID), True)
    aloc1 = self.nodes[ROUTER2].get_ip6_address(config.ADDRESS_TYPE.ALOC)[0]
    self.pingFromAll(aloc0)
    self.pingFromAll(aloc1)
    self.nodes[ROUTER1].remove_service(SRV_0_ENT_NUMBER, SRV_0_SERVICE_DATA)
    self.nodes[ROUTER1].register_netdata()
    self.simulator.go(2)
    self.assertEqual(self.hasAloc(LEADER, SRV_0_ID), True)
    self.assertEqual(self.hasAloc(LEADER, SRV_1_ID), False)
    self.assertEqual(self.hasAloc(ROUTER1, SRV_0_ID), False)
    self.assertEqual(self.hasAloc(ROUTER1, SRV_1_ID), False)
    self.assertEqual(self.hasAloc(ROUTER2, SRV_0_ID), False)
    self.assertEqual(self.hasAloc(ROUTER2, SRV_1_ID), True)
    self.pingFromAll(aloc0)
    self.pingFromAll(aloc1)
    self.nodes[LEADER].remove_service(SRV_0_ENT_NUMBER, SRV_0_SERVICE_DATA)
    self.nodes[LEADER].register_netdata()
    self.simulator.go(2)
    self.assertEqual(self.hasAloc(LEADER, SRV_0_ID), False)
    self.assertEqual(self.hasAloc(LEADER, SRV_1_ID), False)
    self.assertEqual(self.hasAloc(ROUTER1, SRV_0_ID), False)
    self.assertEqual(self.hasAloc(ROUTER1, SRV_1_ID), False)
    self.assertEqual(self.hasAloc(ROUTER2, SRV_0_ID), False)
    self.assertEqual(self.hasAloc(ROUTER2, SRV_1_ID), True)
    self.failToPingFromAll(aloc0)
    self.pingFromAll(aloc1)
    self.nodes[ROUTER2].remove_service(SRV_1_ENT_NUMBER, SRV_1_SERVICE_DATA)
    self.nodes[ROUTER2].register_netdata()
    self.simulator.go(2)
    self.assertEqual(self.hasAloc(LEADER, SRV_0_ID), False)
    self.assertEqual(self.hasAloc(LEADER, SRV_1_ID), False)
    self.assertEqual(self.hasAloc(ROUTER1, SRV_0_ID), False)
    self.assertEqual(self.hasAloc(ROUTER1, SRV_1_ID), False)
    self.assertEqual(self.hasAloc(ROUTER2, SRV_0_ID), False)
    self.assertEqual(self.hasAloc(ROUTER2, SRV_1_ID), False)
    self.failToPingFromAll(aloc0)
    self.failToPingFromAll(aloc1)