How to use the crash.Crash.fromjson function in crash

To help you get started, we’ve selected a few crash examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github naturalness / partycrasher / topN.py View on Github external
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
github naturalness / partycrasher / topN.py View on Github external
def test_desser(self):
        assert (json.loads(Crash.fromjson(self.exampleJson1).json()) ==
                json.loads(self.exampleJson1))