third_party/blink/tools/blinkpy/web_tests/run_web_tests_unittest.py
def assert_baselines(self, written_files, log_stream, expected_file_base,
                         expected_extensions):
        """Asserts that the written_files contains baselines for one test.

        Args:
            written_files: from FileSystem.written_files.
            log_stream: The log stream from the run.
            expected_file_base: Relative path to the baseline,
                without the extension, from the web test directory.
            expected_extensions: Expected extensions which should be written.
        """
        for ext in expected_extensions:
            baseline = '%s-expected%s' % (expected_file_base, ext)
            baseline_full_path = '%s/%s' % (test.WEB_TEST_DIR, baseline)
            self.assertIsNotNone(written_files.get(baseline_full_path))
            baseline_message = 'Writing new baseline "%s"\n' % baseline
            self.assert_contains(log_stream, baseline_message)
        # Assert that baselines with other extensions were not written.
        for ext in ({'.png', '.txt', '.wav'} - set(expected_extensions)):
            baseline = '%s-expected%s' % (expected_file_base, ext)
            baseline_full_path = '%s/%s' % (test.WEB_TEST_DIR, baseline)
            self.assertIsNone(written_files.get(baseline_full_path))
Asserts that the written_files contains baselines for one test.

        Args:
            written_files: from FileSystem.written_files.
            log_stream: The log stream from the run.
            expected_file_base: Relative path to the baseline,
                without the extension, from the web test directory.
            expected_extensions: Expected extensions which should be written.
        
Asserts that the written_files contains baselines for one test.
Asserts that the written_files contains baselines for one test .
def assert_baselines(self, written_files, log_stream, expected_file_base,
                         expected_extensions):
        for ext in expected_extensions:
            baseline = '%s-expected%s' % (expected_file_base, ext)
            baseline_full_path = '%s/%s' % (test.WEB_TEST_DIR, baseline)
            self.assertIsNotNone(written_files.get(baseline_full_path))
            baseline_message = 'Writing new baseline "%s"\n' % baseline
            self.assert_contains(log_stream, baseline_message)
        for ext in ({'.png', '.txt', '.wav'} - set(expected_extensions)):
            baseline = '%s-expected%s' % (expected_file_base, ext)
            baseline_full_path = '%s/%s' % (test.WEB_TEST_DIR, baseline)
            self.assertIsNone(written_files.get(baseline_full_path))
def assert_baselines ( self , written_files , log_stream , expected_file_base , expected_extensions ) : for ext in expected_extensions : baseline = '%s-expected%s' % ( expected_file_base , ext ) baseline_full_path = '%s/%s' % ( test . WEB_TEST_DIR , baseline ) self . assertIsNotNone ( written_files . get ( baseline_full_path ) ) baseline_message = 'Writing new baseline "%s"\n' % baseline self . assert_contains ( log_stream , baseline_message ) for ext in ( { '.png' , '.txt' , '.wav' } - set ( expected_extensions ) ) : baseline = '%s-expected%s' % ( expected_file_base , ext ) baseline_full_path = '%s/%s' % ( test . WEB_TEST_DIR , baseline ) self . assertIsNone ( written_files . get ( baseline_full_path ) )
Asserts that the written_files contains baselines for one test.
Asserts that the written_files contains baselines for one test .
"""Asserts that the written_files contains baselines for one test.

        Args:
            written_files: from FileSystem.written_files.
            log_stream: The log stream from the run.
            expected_file_base: Relative path to the baseline,
                without the extension, from the web test directory.
            expected_extensions: Expected extensions which should be written.
        """ # Assert that baselines with other extensions were not written.
self
written_files
None
log_stream
The log stream from the run.
The log stream from the run .
expected_file_base
Relative path to the baseline,
without the extension, from the web test directory.
Relative path to the baseline without the extension from the web test directory .
expected_extensions
Expected extensions which should be written.
Expected extensions which should be written .