Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1084)

Unified Diff: grit/format/policy_templates/writers/xml_writer_base_unittest.py

Issue 1438403002: Remove contents of grit's git-svn-mirror repository. (Closed) Base URL: https://chromium.googlesource.com/external/grit-i18n@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « grit/format/policy_templates/writers/xml_formatted_writer.py ('k') | grit/format/rc.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grit/format/policy_templates/writers/xml_writer_base_unittest.py
diff --git a/grit/format/policy_templates/writers/xml_writer_base_unittest.py b/grit/format/policy_templates/writers/xml_writer_base_unittest.py
deleted file mode 100644
index cfa5dc268549c4fc9bee8f46f53e3b7ccf4776e5..0000000000000000000000000000000000000000
--- a/grit/format/policy_templates/writers/xml_writer_base_unittest.py
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-
-"""Unittests for grit.format.policy_templates.writers.admx_writer."""
-
-
-import re
-import unittest
-
-
-class XmlWriterBaseTest(unittest.TestCase):
- '''Base class for XML writer unit-tests.
- '''
-
- def GetXMLOfChildren(self, parent):
- '''Returns the XML of all child nodes of the given parent node.
- Args:
- parent: The XML of the children of this node will be returned.
-
- Return: XML of the chrildren of the parent node.
- '''
- raw_pretty_xml = ''.join(
- child.toprettyxml(indent=' ') for child in parent.childNodes)
- # Python 2.6.5 which is present in Lucid has bug in its pretty print
- # function which produces new lines around string literals. This has been
- # fixed in Precise which has Python 2.7.3 but we have to keep compatibility
- # with both for now.
- text_re = re.compile('>\n\s+([^<>\s].*?)\n\s*</', re.DOTALL)
- return text_re.sub('>\g<1></', raw_pretty_xml)
-
- def AssertXMLEquals(self, output, expected_output):
- '''Asserts if the passed XML arguements are equal.
- Args:
- output: Actual XML text.
- expected_output: Expected XML text.
- '''
- self.assertEquals(output.strip(), expected_output.strip())
« no previous file with comments | « grit/format/policy_templates/writers/xml_formatted_writer.py ('k') | grit/format/rc.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698