Пример #1
0
    def test_dissociated(self, send_sysconf_commands, send_bus_dissociation_events):
        line_extension = LineExtension(line_id=1, extension_id=2)

        notifier.dissociated(line_extension)

        send_sysconf_commands.assert_called_once_with(line_extension)
        send_bus_dissociation_events.assert_called_once_with(line_extension)
Пример #2
0
def dissociate(line_extension):
    validator.validate_dissociation(line_extension)
    _delete_association(line_extension)
    notifier.dissociated(line_extension)
    return line_extension
Пример #3
0
def dissociate(line_extension):
    validator.validate_dissociation(line_extension)
    _delete_association(line_extension)
    notifier.dissociated(line_extension)
    return line_extension