I am finding it very hard to understand check_expected_tools. I don't know why it will accept version and then basically ignore it if retracted is set. It seems like retracted is really a mode, not a parameter. I would like to see a test like this:
Notice that 1.20.8 has been added and 1.20.9 has been removed. I don't know what the expected behaviour is. I think the actual behaviour is that it will complain that 1.20.8 is unexpected.
I am finding it very hard to understand check_expected_ tools. I don't know why it will accept version and then basically ignore it if retracted is set. It seems like retracted is really a mode, not a parameter. I would like to see a test like this:
old_tools = make_tools_ data('trusty' , 'amd64', ['1.20.7', '1.20.9']) data('trusty' , 'amd64', ['1.20.7', '1.20.8']) tools(old_ tools, new_tools, '1.20.8', '1.20.9')
new_tools = make_tools_
check_expected_
Notice that 1.20.8 has been added and 1.20.9 has been removed. I don't know what the expected behaviour is. I think the actual behaviour is that it will complain that 1.20.8 is unexpected.