Beispiel #1
0
    def test_validate_edit(self, validate_template, validate_model, validate_caller_id):
        user = Mock(User)

        validator.validate_edit(user)
        validate_model.assert_called_once_with(user)
        validate_template.assert_called_once_with(user)
        validate_caller_id.assert_called_once_with(user, required=True)
Beispiel #2
0
def edit(user):
    validator.validate_edit(user)
    user_dao.edit(user)
    update_voicemail_fullname(user)
    line_services.update_callerid(user)
    notifier.edited(user)