| Index: grit/format/policy_templates/writers/json_writer_unittest.py
|
| ===================================================================
|
| --- grit/format/policy_templates/writers/json_writer_unittest.py (revision 119)
|
| +++ grit/format/policy_templates/writers/json_writer_unittest.py (working copy)
|
| @@ -243,9 +243,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": ['
|
| @@ -255,7 +252,7 @@
|
| ' "caption": "Example Dictionary Policy",'
|
| ' "desc": "Example Dictionary Policy",'
|
| ' "supported_on": ["chrome.linux:8-"],'
|
| - ' "example_value": ' + value +
|
| + ' "example_value": ' + str(example) +
|
| ' },'
|
| ' ],'
|
| ' "placeholders": [],'
|
| @@ -267,7 +264,8 @@
|
| ' // Example Dictionary Policy\n' +
|
| HEADER_DELIMETER +
|
| ' // Example Dictionary Policy\n\n'
|
| - ' //"DictionaryPolicy": ' + str(eval(value)) + '\n\n'
|
| + ' //"DictionaryPolicy": {\'bool\': True, \'dict\': {\'a\': 1, '
|
| + '\'b\': 2}, \'int\': 10, \'list\': [1, 2, 3], \'string\': \'abc\'}\n\n'
|
| '}')
|
| self.CompareOutputs(output, expected_output)
|
|
|
|
|