Exemplo n.º 1
0
 def test_get_schedule_by_invalid_id(self):
     try:
         result = schedule.get_schedule_by_id(
             "3fc6e2fa-15a6-11e6-03d4-0021f653c222")
         self.assertNotEqual(result.status_code, 200)
     except common.JPushFailure as e:
         self.assertIsInstance(e, common.JPushFailure)
Exemplo n.º 2
0
 def test_get_schedule_by_id(self):
     result = schedule.get_schedule_by_id(
         "a7d5ceea-8e98-11e6-8ea0-0021f652c102")
     self.assertEqual(result.status_code, 200)
Exemplo n.º 3
0
 def test_get_schedule_by_id(self):
     result = schedule.get_schedule_by_id(
         "3fc6e2fa-15a6-11e6-83d4-0021f653c902")
     self.assertEqual(result.status_code, 200)
 def test_get_schedule_by_id(self):
     schedule_id = schedule.get_schedule_list("1").payload['schedules'][0]['schedule_id']
     result = schedule.get_schedule_by_id(schedule_id)
     self.assertEqual(result.status_code, 200)
 def test_get_schedule_by_invalid_id(self):
     try:
         result = schedule.get_schedule_by_id("3fc6e2fa-15a6-11e6-83d4-0021f653c222")
         self.assertNotEqual(result.status_code, 200)
     except common.JPushFailure as e:
         self.assertIsInstance(e, common.JPushFailure)
 def test_get_schedule_by_id(self):
     result = schedule.get_schedule_by_id("3fc6e2fa-15a6-11e6-83d4-0021f653c902")
     self.assertEqual(result.status_code, 200)
Exemplo n.º 7
0
 def test_get_schedule_by_id(self):
     schedule_id = schedule.get_schedule_list(
         "1").payload['schedules'][0]['schedule_id']
     result = schedule.get_schedule_by_id(schedule_id)
     self.assertEqual(result.status_code, 200)