Index: grit/format/policy_templates/writers/ios_plist_writer_unittest.py |
=================================================================== |
--- grit/format/policy_templates/writers/ios_plist_writer_unittest.py (revision 169) |
+++ grit/format/policy_templates/writers/ios_plist_writer_unittest.py (working copy) |
@@ -180,6 +180,21 @@ |
} |
self._VerifyGeneratedOutput(templates, expected) |
+ def testStringEnumList(self): |
+ templates = self._MakeTemplate('StringEnumListPolicy', |
+ 'string-enum-list', '["a", "b"]', |
+ ''' |
+ 'items': [ |
+ { 'name': 'Foo', 'value': 'a', 'caption': '' }, |
+ { 'name': 'Bar', 'value': 'b', 'caption': '' }, |
+ ], |
+ ''') |
+ |
+ expected = { |
+ 'StringEnumListPolicy': [ "a", "b" ], |
+ } |
+ self._VerifyGeneratedOutput(templates, expected) |
+ |
def testListOfDictionary(self): |
templates = self._MakeTemplate( |
'ManagedBookmarks', 'dict', |