Home | History | Annotate | Download | only in perf_upload

Lines Matching refs:json

7 import json, unittest
146 """Sanity tests for the JSON-formatted presentation config file."""
155 """Verifies the file can be parsed as proper JSON."""
158 json.load(fp)
160 self.fail('Presentation config file could not be parsed as JSON.')
164 """Verifies that each test name appears only once in the JSON file."""
168 json_obj = json.load(fp)
170 self.fail('Presentation config file could not be parsed as JSON.')
174 msg='Autotest names not unique in the JSON file.')
182 json_obj = json.load(fp)
184 self.fail('Presentation config file could not be parsed as JSON.')
334 """Verifies a JSON string matches the expected result.
336 This function compares JSON objects rather than strings, because of
340 @param actual_result: The candidate JSON string.
341 @param expected_result: The reference JSON string that the candidate
345 actual = json.loads(actual_result)
346 expected = json.loads(expected_result)
406 """Verifies format_for_upload generates correct json data."""