def test_check_fields_type(self):
     self.assertRaises(
         colander.Invalid,
         restfulapi.DeleteJournalIssuesSchema().deserialize,
         {"issue": 1678},
     )
 def test_valid(self):
     data = {"issue": "1678-4596-cr-25-3"}
     restfulapi.DeleteJournalIssuesSchema().deserialize(data)
 def test_issue_field_is_required(self):
     self.assertRaises(colander.Invalid,
                       restfulapi.DeleteJournalIssuesSchema().deserialize,
                       {})