Exemple #1
0
    def test_given_dissociated_line_extension_then_exten_and_context_removed(
            self, line_extension_dissociate, extension_dao_get,
            remove_exten_and_context):
        line_extension = Mock(LineExtension, extension_id=1)
        extension = extension_dao_get.return_value = Mock(Extension)

        ule_service.dissociate_line_extension(line_extension)

        line_extension_dissociate.assert_called_once_with(line_extension)
        extension_dao_get.assert_called_once_with(line_extension.extension_id)
        remove_exten_and_context.assert_called_once_with(extension)
Exemple #2
0
    def test_given_dissociated_line_extension_then_exten_and_context_removed(self,
                                                                             line_extension_dissociate,
                                                                             extension_dao_get,
                                                                             remove_exten_and_context):
        line_extension = Mock(LineExtension, extension_id=1)
        extension = extension_dao_get.return_value = Mock(Extension)

        ule_service.dissociate_line_extension(line_extension)

        line_extension_dissociate.assert_called_once_with(line_extension)
        extension_dao_get.assert_called_once_with(line_extension.extension_id)
        remove_exten_and_context.assert_called_once_with(extension)
Exemple #3
0
def _delete_internal_association(line_extension):
    ule_services.dissociate_line_extension(line_extension)
Exemple #4
0
def _delete_internal_association(line_extension):
    ule_services.dissociate_line_extension(line_extension)