def savedJSONInvariants(testCase, savedJSON):
 testCase.assertIsInstance(savedJSON, unicode)
 testCase.assertEqual(savedJSON.count('\n'), 0)
 return savedJSON

def savedJSONInvariants ( testCase , savedJSON ) : testCase . assertIsInstance ( savedJSON , unicode ) testCase . assertEqual ( savedJSON . count ( '\n' ) , 0 ) return savedJSON
assert a few things about the result of l{eventasjson} .