Esempio n. 1
0
    def test_dissociated(self, bus_event_dissociated, sysconf_command_association_updated):
        user_voicemail = UserVoicemail(user_id=1, voicemail_id=2)

        notifier.dissociated(user_voicemail)

        sysconf_command_association_updated.assert_called_once_with(user_voicemail)
        bus_event_dissociated.assert_called_once_with(user_voicemail)
Esempio n. 2
0
def dissociate(user_voicemail):
    validator.validate_dissociation(user_voicemail)
    dao.dissociate(user_voicemail)
    notifier.dissociated(user_voicemail)