def savedJSONInvariants(testCase: TestCase, savedJSON: str) -> str:
    '\n    Assert a few things about the result of L{eventAsJSON}, then return it.\n\n    @param testCase: The L{TestCase} with which to perform the assertions.\n    @param savedJSON: The result of L{eventAsJSON}.\n\n    @return: C{savedJSON}\n\n    @raise AssertionError: If any of the preconditions fail.\n    '
    testCase.assertIsInstance(savedJSON, str)
    testCase.assertEqual(savedJSON.count('\n'), 0)
    return savedJSON
Assert a few things about the result of L{eventAsJSON}, then return it.

@param testCase: The L{TestCase} with which to perform the assertions.
@param savedJSON: The result of L{eventAsJSON}.

@return: C{savedJSON}

@raise AssertionError: If any of the preconditions fail.
def savedJSONInvariants(testCase: TestCase, savedJSON: str) -> str:
    '\n    Assert a few things about the result of L{eventAsJSON}, then return it.\n\n    @param testCase: The L{TestCase} with which to perform the assertions.\n    @param savedJSON: The result of L{eventAsJSON}.\n\n    @return: C{savedJSON}\n\n    @raise AssertionError: If any of the preconditions fail.\n    '
    testCase.assertIsInstance(savedJSON, str)
    testCase.assertEqual(savedJSON.count('\n'), 0)
    return savedJSON