Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_serdes(self):
serdes = Crash.fromjson(self.exampleCrash1.json())
assert (self.exampleCrash1 == serdes)
assert len(self.exampleCrash1['stacktrace']) > 1
assert len(serdes['stacktrace']) > 1
def test_desser(self):
assert (json.loads(Crash.fromjson(self.exampleJson1).json()) ==
json.loads(self.exampleJson1))