| Index: grit/format/policy_templates/writers/reg_writer_unittest.py
|
| ===================================================================
|
| --- grit/format/policy_templates/writers/reg_writer_unittest.py (revision 119)
|
| +++ grit/format/policy_templates/writers/reg_writer_unittest.py (working copy)
|
| @@ -224,9 +224,6 @@
|
| 'b': 2,
|
| }
|
| }
|
| - # Encode |value| here, to make sure the string encoded within the reg_writer
|
| - # and the expected value are the same.
|
| - value = str(example)
|
| grd = self.PrepareTest(
|
| '{'
|
| ' "policy_definitions": ['
|
| @@ -236,7 +233,7 @@
|
| ' "caption": "",'
|
| ' "desc": "",'
|
| ' "supported_on": ["chrome.win:8-"],'
|
| - ' "example_value": ' + value +
|
| + ' "example_value": ' + str(example) +
|
| ' },'
|
| ' ],'
|
| ' "placeholders": [],'
|
| @@ -247,7 +244,8 @@
|
| 'Windows Registry Editor Version 5.00',
|
| '',
|
| '[HKEY_LOCAL_MACHINE\\Software\\Policies\\Chromium]',
|
| - '"DictionaryPolicy"="%s"' % str(eval(value))])
|
| + '"DictionaryPolicy"="{\'bool\': True, \'dict\': {\'a\': 1, '
|
| + '\'b\': 2}, \'int\': 10, \'list\': [1, 2, 3], \'string\': \'abc\'}"'])
|
| self.CompareOutputs(output, expected_output)
|
|
|
| def testNonSupportedPolicy(self):
|
|
|