def test_generar_dialplan_entrante_ivr_breakout(self): ivr = IVRFactory() destino_ivr = DestinoEntrante.crear_nodo_ruta_entrante(ivr) self.queue_entrante.ivr_breakdown = destino_ivr creator = QueuesCreator() dialplan = creator._generar_dialplan_entrantes(self.campana_entrante) self.assertIn('context=sub-oml-module-ivrbreakout', dialplan)
def test_generar_dialplan_entrante_default(self): creator = QueuesCreator() dialplan = creator._generar_dialplan_entrantes(self.campana_entrante) self.assertIn('announce-holdtime=no', dialplan) self.assertIn('queue-callswaiting=queue-callswaiting', dialplan) self.assertIn('queue-thereare=queue-thereare', dialplan) self.assertIn('queue-youarenext=queue-youarenext', dialplan)
def test_generar_dialplan_entrante_posicion_de_anuncios(self): self.queue_entrante.announce_position = True creator = QueuesCreator() dialplan = creator._generar_dialplan_entrantes(self.campana_entrante) self.assertIn('announce-position=yes', dialplan)
def test_generar_dialplan_entrante_posicion_de_anuncios_default(self): creator = QueuesCreator() dialplan = creator._generar_dialplan_entrantes(self.campana_entrante) self.assertIn('announce-position=no', dialplan)
def test_generar_dialplan_announce_holdtime_activated_once(self): self.queue_entrante.announce_holdtime = 'once' creator = QueuesCreator() dialplan = creator._generar_dialplan_entrantes(self.campana_entrante) self.assertIn('announce-holdtime=once', dialplan)