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