示例#1
0
 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)
示例#3
0
 def test_exception_data_details(self):
     details = protocol.ExceptionDetails()
     data = protocol.ExceptionData(exceptions=[details])
     self.assertEqual(len(data.exceptions), 1)