Index: grit/format/policy_templates/writers/doc_writer_unittest.py |
=================================================================== |
--- grit/format/policy_templates/writers/doc_writer_unittest.py (revision 173) |
+++ grit/format/policy_templates/writers/doc_writer_unittest.py (working copy) |
@@ -6,6 +6,7 @@ |
'''Unit tests for grit.format.policy_templates.writers.doc_writer''' |
+import json |
import os |
import sys |
if __name__ == '__main__': |
@@ -688,14 +689,14 @@ |
}, |
} |
self.writer._AddDictionaryExample(self.doc_root, policy) |
- value = str(policy['example_value']) |
+ value = json.dumps(policy['example_value']).replace('"', '"') |
self.assertEquals( |
self.doc_root.toxml(), |
'<root>' |
'<dl style="style_dd dl;">' |
'<dt>Windows:</dt>' |
'<dd style="style_.monospace;style_.pre;">MockKey\PolicyName = ' |
- '"' + value + '"' |
+ + value + |
'</dd>' |
'<dt>Linux:</dt>' |
'<dd style="style_.monospace;">PolicyName: ' + value + '</dd>' |