Lines Matching refs:test_data
16 def _get_original_name(test_data): argument
17 return test_data.split('.compressed')[0]
22 def _check_decompression(self, test_data): argument
24 temp_uncompressed = _test_utils.get_temp_uncompressed_name(test_data)
25 original = _get_original_name(test_data)
28 def _decompress_file(self, test_data): argument
29 temp_uncompressed = _test_utils.get_temp_uncompressed_name(test_data)
30 args = BRO_ARGS + ['-f', '-d', '-i', test_data, '-o', temp_uncompressed]
33 def _decompress_pipe(self, test_data): argument
34 temp_uncompressed = _test_utils.get_temp_uncompressed_name(test_data)
37 with open(test_data, 'rb') as in_file:
41 def _test_decompress_file(self, test_data): argument
42 self._decompress_file(test_data)
43 self._check_decompression(test_data)
45 def _test_decompress_pipe(self, test_data): argument
46 self._decompress_pipe(test_data)
47 self._check_decompression(test_data)
57 def _check_decompression(self, test_data, **kwargs): argument
59 temp_uncompressed = _test_utils.get_temp_uncompressed_name(test_data)
60 temp_compressed = _test_utils.get_temp_compressed_name(test_data)
61 original = test_data
67 def _compress_file(self, test_data, **kwargs): argument
68 temp_compressed = _test_utils.get_temp_compressed_name(test_data)
74 args.extend(['-i', test_data, '-o', temp_compressed])
77 def _compress_pipe(self, test_data, **kwargs): argument
78 temp_compressed = _test_utils.get_temp_compressed_name(test_data)
85 with open(test_data, 'rb') as in_file:
89 def _test_compress_file(self, test_data, **kwargs): argument
90 self._compress_file(test_data, **kwargs)
91 self._check_decompression(test_data)
93 def _test_compress_pipe(self, test_data, **kwargs): argument
94 self._compress_pipe(test_data, **kwargs)
95 self._check_decompression(test_data)