Chromium Code Reviews| Index: grit/format/policy_templates/writers/adml_writer_unittest.py |
| =================================================================== |
| --- grit/format/policy_templates/writers/adml_writer_unittest.py (revision 177) |
| +++ grit/format/policy_templates/writers/adml_writer_unittest.py (working copy) |
| @@ -77,6 +77,19 @@ |
| '</resources></policyDefinitionResources>') |
| self.AssertXMLEquals(output, expected_output) |
| + def testEmptyVersion(self): |
|
pastarmovj
2014/10/07 14:54:35
Actually I think a better name for this test will
cschuet1
2014/10/07 15:42:45
Done.
|
| + self.writer.config['version'] = '39.0.0.0' |
| + self.writer.BeginTemplate() |
| + self.writer.EndTemplate() |
| + output = self.writer.GetTemplateText() |
| + expected_output = ( |
| + '<?xml version="1.0" ?><policyDefinitionResources' |
| + ' revision="1.0" schemaVersion="1.0"><!--test version: 39.0.0.0--><displayName/><description/>' |
| + '<resources><stringTable><string id="SUPPORTED_TESTOS">Supported on' |
| + ' Test OS or higher</string></stringTable><presentationTable/>' |
| + '</resources></policyDefinitionResources>') |
| + self.AssertXMLEquals(output, expected_output) |
| + |
| def testPolicyGroup(self): |
| empty_policy_group = { |
| 'name': 'PolicyGroup', |