'Test the multiple entering.'

def test_mobile_multiple_async_enter_exit(self):

    enter_message = REGION_ENTER_MESSAGE.copy()
    enter_message['desc'] = IBEACON_DEVICE
    exit_message = REGION_LEAVE_MESSAGE.copy()
    exit_message['desc'] = IBEACON_DEVICE
    for _ in range(0, 20):
        fire_mqtt_message(self.hass, EVENT_TOPIC, json.dumps(enter_message))
        fire_mqtt_message(self.hass, EVENT_TOPIC, json.dumps(exit_message))
    fire_mqtt_message(self.hass, EVENT_TOPIC, json.dumps(enter_message))
    self.hass.block_till_done()
    self.send_message(EVENT_TOPIC, exit_message)
    self.assertEqual(owntracks.MOBILE_BEACONS_ACTIVE['greg_phone'], [])
