Beispiel #1
0
 def test_task_info_non_existent(self):
     with self.assertRaises(Task.DoesNotExist):
         client.task_info(_make_request(), 999)
 def test_task_info_non_existent(self):
     with self.assertRaises(Task.DoesNotExist):
         client.task_info(_make_request(), 999)
Beispiel #3
0
 def test_task_info_flat(self):
     task_id = Task.create_task(self._user.username, 'label', 'method')
     task_info = client.task_info(_make_request(), task_id, flat=True)
     self.assertEqual(task_info['id'], task_id)
 def test_task_info_flat(self):
     task_id = Task.create_task(self._user.username, 'label', 'method')
     task_info = client.task_info(_make_request(), task_id, flat=True)
     self.assertEqual(task_info['id'], task_id)