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

Side by Side Diff: grit/format/policy_templates/writers/admx_writer_unittest.py

Issue 227073006: Added a policy writer for iOS Plists. (Closed) Base URL: https://chromium.googlesource.com/external/grit-i18n.git@master
Patch Set: rebase Created 6 years, 8 months 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 unified diff | Download patch
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 6
7 """Unittests for grit.format.policy_templates.writers.admx_writer.""" 7 """Unittests for grit.format.policy_templates.writers.admx_writer."""
8 8
9 9
10 import os 10 import os
11 import sys 11 import sys
12 import unittest 12 import unittest
13 if __name__ == '__main__': 13 if __name__ == '__main__':
14 sys.path.append(os.path.join(os.path.dirname(__file__), '../../../..')) 14 sys.path.append(os.path.join(os.path.dirname(__file__), '../../../..'))
15 15
16 16
17 from grit.format.policy_templates.writers import admx_writer 17 from grit.format.policy_templates.writers import admx_writer
18 from grit.format.policy_templates.writers import xml_writer_base_unittest 18 from grit.format.policy_templates.writers import xml_writer_base_unittest
19 from xml.dom import minidom 19 from xml.dom import minidom
20 20
21 21
22 class AdmxWriterTest(xml_writer_base_unittest.XmlWriterBaseTest): 22 class AdmxWriterUnittest(xml_writer_base_unittest.XmlWriterBaseTest):
23 23
24 def _CreateDocumentElement(self): 24 def _CreateDocumentElement(self):
25 dom_impl = minidom.getDOMImplementation('') 25 dom_impl = minidom.getDOMImplementation('')
26 doc = dom_impl.createDocument(None, 'root', None) 26 doc = dom_impl.createDocument(None, 'root', None)
27 return doc.documentElement 27 return doc.documentElement
28 28
29 def setUp(self): 29 def setUp(self):
30 # Writer configuration. This dictionary contains parameter used by the ADMX 30 # Writer configuration. This dictionary contains parameter used by the ADMX
31 # Writer 31 # Writer
32 config = { 32 config = {
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 })) 402 }))
403 self.assertFalse(self.writer.IsPolicySupported({ 403 self.assertFalse(self.writer.IsPolicySupported({
404 'supported_on': [ 404 'supported_on': [
405 {'platforms': ['mac', 'linux']}, {'platforms': ['aaa']} 405 {'platforms': ['mac', 'linux']}, {'platforms': ['aaa']}
406 ] 406 ]
407 })) 407 }))
408 408
409 409
410 if __name__ == '__main__': 410 if __name__ == '__main__':
411 unittest.main() 411 unittest.main()
OLDNEW
« no previous file with comments | « grit/format/policy_templates/writers/adml_writer_unittest.py ('k') | grit/format/policy_templates/writers/doc_writer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698