'Proves that the expectation string is a reasonable one, since it is
not very human readable with all of the escaping.
Ensures that after parsing the string is equal to the original.
Assertions will fail if the expectation is invalid.
Arguments:
test_string: The original string to be tested in the Mako template.
expected_string_for_js: An escaped for js string that should be
parseable into the same string as test_string.'

def _validate_expectation_of_string_for_js(self, test_string, expected_string_for_js):

    parsed_expected_string = json.loads((('"' + expected_string_for_js) + '"'))
    self.assertEqual(test_string.decode(encoding='utf-8'), parsed_expected_string)
