def test_checkin_used1(self): C = activityCheckin() C.input = {'actId': 1, 'studentId': '2'} self.assertRaises(ValidateError, C.post)
def test_checkin_invaild2(self): C = activityCheckin() C.input = {'actId': 1, 'ticket': '1'} self.assertRaises(ValidateError, C.post)
def test_checkin_vaild2(self): C = activityCheckin() C.input = {'actId': 1, 'ticket': '3'} info = C.post() self.assertEqual(info['ticket'], '3')