def testProgramDoesntExist(self, mock_logger): program = ProgramFactory() uuid = program.uuid self.config.program_hooks = '%s:bananas' % uuid program.delete() self.config.save() call_command('modify_program_hooks') mock_logger.warning.assert_called_with(f'Cannot find program with uuid {uuid}')