Esempio n. 1
0
 def test_from_json_no_number(self):
     """
     L{ims.data.Incident.from_json} requires a non-C{None} number.
     """
     self.assertRaises(
         TypeError,
         Incident.from_json, from_json_text(incident1_text)
     )
Esempio n. 2
0
 def test_from_json(self):
     """
     Test for L{ims.data.Incident.from_json} with incident data.
     """
     self.equals_1(Incident.from_json(from_json_text(incident1_text), 1))