Beispiel #1
0
    def test_associated(self, send_bus_association_events, send_sysconf_association_commands):
        line_extension = LineExtension(line_id=1, extension_id=2)

        notifier.associated(line_extension)

        send_sysconf_association_commands.assert_called_once_with(line_extension)
        send_bus_association_events.assert_called_once_with(line_extension)
Beispiel #2
0
def associate(line_extension):
    association_manager.associate(line_extension)
    notifier.associated(line_extension)
    return line_extension