> This is really binary, so I would just drop this bit.
I'm not sure of what should be dropped.
The other slight change is the request to replace item by key : the key variable was already in use in the method, so I replaced item by bin_key to discriminate.
I also improved the test by avoiding repetition and testing the exceptions.
Hello Martin,
All the changes that you requested have been implemented except for one that I don't understand :
> + report. ProblemReport( ) report. CompressedValue (b'FooFoo! ') report. CompressedValue () ].set_value( bin_data) report. CompressedValue (large_ val) report. CompressedValue (b'\1\1\ 1\n\2\2\ n\3\3\3' )
> + def test_extract(self):
> + '''extract() with various binary elements.'''
> +
> + # create a test report with binary elements
> + large_val = b'A' * 5000000
> +
> + pr = problem_
> + pr['Txt'] = 'some text'
> + pr['MoreTxt'] = 'some more text'
> + pr['Foo'] = problem_
> + pr['Uncompressed'] = bin_data
> + pr['Bin'] = problem_
> + pr['Bin'
> + pr['Large'] = problem_
> + pr['Multiline'] = problem_
> This is really binary, so I would just drop this bit.
I'm not sure of what should be dropped.
The other slight change is the request to replace item by key : the key variable was already in use in the method, so I replaced item by bin_key to discriminate.
I also improved the test by avoiding repetition and testing the exceptions.
Let me know if there is anything else to be done.
Kind regards,
...Louis