• Home
  • Raw
  • Download

Lines Matching refs:test_data

17 def _get_original_name(test_data):  argument
18 return test_data.split('.compressed')[0]
23 def _check_decompression(self, test_data): argument
25 temp_uncompressed = _test_utils.get_temp_uncompressed_name(test_data)
26 original = _get_original_name(test_data)
29 def _decompress_file(self, test_data): argument
30 temp_uncompressed = _test_utils.get_temp_uncompressed_name(test_data)
31 args = [PYTHON, BRO, '-f', '-d', '-i', test_data, '-o',
35 def _decompress_pipe(self, test_data): argument
36 temp_uncompressed = _test_utils.get_temp_uncompressed_name(test_data)
39 with open(test_data, 'rb') as in_file:
43 def _test_decompress_file(self, test_data): argument
44 self._decompress_file(test_data)
45 self._check_decompression(test_data)
47 def _test_decompress_pipe(self, test_data): argument
48 self._decompress_pipe(test_data)
49 self._check_decompression(test_data)
59 def _check_decompression(self, test_data, **kwargs): argument
61 temp_uncompressed = _test_utils.get_temp_uncompressed_name(test_data)
62 temp_compressed = _test_utils.get_temp_compressed_name(test_data)
63 original = test_data
71 def _compress_file(self, test_data, **kwargs): argument
72 temp_compressed = _test_utils.get_temp_compressed_name(test_data)
80 args.extend(['-i', test_data, '-o', temp_compressed])
83 def _compress_pipe(self, test_data, **kwargs): argument
84 temp_compressed = _test_utils.get_temp_compressed_name(test_data)
93 with open(test_data, 'rb') as in_file:
97 def _test_compress_file(self, test_data, **kwargs): argument
98 self._compress_file(test_data, **kwargs)
99 self._check_decompression(test_data)
101 def _test_compress_pipe(self, test_data, **kwargs): argument
102 self._compress_pipe(test_data, **kwargs)
103 self._check_decompression(test_data)
105 def _test_compress_file_custom_dictionary(self, test_data, **kwargs): argument
106 kwargs['dictionary'] = test_data
107 self._compress_file(test_data, **kwargs)
108 self._check_decompression(test_data, **kwargs)
110 def _test_compress_pipe_custom_dictionary(self, test_data, **kwargs): argument
111 kwargs['dictionary'] = test_data
112 self._compress_pipe(test_data, **kwargs)
113 self._check_decompression(test_data, **kwargs)