def test_exception_data_to_dict(self): data = protocol.ExceptionData() to_dict = { "ver": 2, "exceptions": [], "severityLevel": None, "problemId": None, "properties": None, "measurements": None, } self.assertEqual(data.to_dict(), to_dict)
def test_exception_data(self): data = protocol.ExceptionData() self.assertEqual(data.ver, 2)
def test_exception_data_details(self): details = protocol.ExceptionDetails() data = protocol.ExceptionData(exceptions=[details]) self.assertEqual(len(data.exceptions), 1)