コード例 #1
0
ファイル: tools_test.py プロジェクト: ahamilton/vigil
 def _test_tool(self, tool, sub_tests):
     for input_filename, expected_status in sub_tests:
         with self.subTest(input_filename=input_filename):
             status, result = run_tool(tool, input_filename)
             golden_path = result_path(tool, input_filename)
             golden.assertGolden(widget_to_string(result), golden_path)
             self.assertEqual(status, expected_status)
コード例 #2
0
ファイル: vigil_test.py プロジェクト: ahamilton/vigil
def _assert_widget_appearance(widget, golden_path, dimensions=_DIMENSIONS):
    golden_path_absolute = os.path.join(os.path.dirname(__file__), golden_path)
    golden.assertGolden(_widget_to_string(widget, dimensions),
                        golden_path_absolute)