Пример #1
0
    def front_to_back(self,
                      cmdline,
                      expected_output_name,
                      conform_regexes=None):
        new_output = self.get_output(cmdline, conform_regexes)
        full_expected_output_name = os.path.join(PATH_TO_EXPECTED_OUTPUT,
                                                 expected_output_name)

        menu = TestMenu()
        menu.go(cmdline, full_expected_output_name, new_output)
Пример #2
0
	def _do(self, filename, options = None):
		input_filename = os.path.join(self.INPUT_DIR, filename)

		handle = cStringIO.StringIO()
		self._parse(input_filename, handle, options)
		new_output = handle.getvalue()

		output_filename = os.path.join(self.OUTPUT_DIR, filename)
		
		menu = TestMenu()
		menu.go(data, output_filename, new_output)
Пример #3
0
	def _do(self, filename, options = None):
		input_filename = os.path.join(self.INPUT_DIR, filename)
		data = file(input_filename).read()

		handle = cStringIO.StringIO()
		self._parse(input_filename, data, handle, options)
		new_output = handle.getvalue()

		output_filename = os.path.join(self.OUTPUT_DIR, filename)
		
		menu = TestMenu()
		menu.go(data, output_filename, new_output)
Пример #4
0
	def front_to_back(self, cmdline, expected_output_name, conform_regexes = None):
		new_output = self.get_output(cmdline, conform_regexes)
		full_expected_output_name = os.path.join(PATH_TO_EXPECTED_OUTPUT, expected_output_name)

		menu = TestMenu()
		menu.go(cmdline, full_expected_output_name, new_output)