tools/metrics/histograms/expand_owners_unittest.py
def testExpandOwnersWithoutOWNERSFilePath(self):
    """Checks that histograms without OWNERS file paths are unchanged."""
    histograms_without_file_paths = xml.dom.minidom.parseString("""
<histograms>

<histogram name="Caffeination" units="mg">
  <owner>joe@chromium.org</owner>
  <summary>I like coffee.</summary>

</histogram>

</histograms>
""")

    expected_histograms = histograms_without_file_paths
    expand_owners.ExpandHistogramsOWNERS(histograms_without_file_paths)
    self.assertEqual(histograms_without_file_paths, expected_histograms)
Checks that histograms without OWNERS file paths are unchanged.
Checks that histograms without OWNERS file paths are unchanged.
Checks that histograms without OWNERS file paths are unchanged .
def testExpandOwnersWithoutOWNERSFilePath(self):
    histograms_without_file_paths = xml.dom.minidom.parseString("""
<histograms>
<histogram name="Caffeination" units="mg">
  <owner>joe@chromium.org</owner>
  <summary>I like coffee.</summary>
</histogram>
</histograms>
""")
    expected_histograms = histograms_without_file_paths
    expand_owners.ExpandHistogramsOWNERS(histograms_without_file_paths)
    self.assertEqual(histograms_without_file_paths, expected_histograms)
def testExpandOwnersWithoutOWNERSFilePath ( self ) : histograms_without_file_paths = xml . dom . minidom . parseString ( """
<histograms>

<histogram name="Caffeination" units="mg">
  <owner>joe@chromium.org</owner>
  <summary>I like coffee.</summary>

</histogram>

</histograms>
""" ) expected_histograms = histograms_without_file_paths expand_owners . ExpandHistogramsOWNERS ( histograms_without_file_paths ) self . assertEqual ( histograms_without_file_paths , expected_histograms )
Checks that histograms without OWNERS file paths are unchanged.
Checks that histograms without OWNERS file paths are unchanged .
"""Checks that histograms without OWNERS file paths are unchanged."""
self