def test_dissociated(self, bus_event_dissociated, sysconf_command_association_updated): user_line = UserLine(user_id=1, line_id=2) notifier.dissociated(user_line) sysconf_command_association_updated.assert_called_once_with(user_line) bus_event_dissociated.assert_called_once_with(user_line)
def dissociate(user_line): validator.validate_dissociation(user_line) ule_service.dissociate_user_line(user_line) notifier.dissociated(user_line)