Beispiel #1
0
 def test_get_status_data(self):
     data = get_status_data(
         'public_task_exception',
         'SUCCESS',
         {'data': 'public'},
         'Something bad happened',
     )
     self.assertEqual(data, {
         'name': 'public_task_exception',
         'data': {'data': 'public'},
         'started': True,
         'finished': True,
         'success': False,
         'error': 'Something bad happened',
     })
 def test_get_status_data(self):
     data = get_status_data(
         'public_task_exception',
         'SUCCESS',
         {'data': 'public'},
         'Something bad happened',
     )
     self.assertEqual(data, {
         'name': 'public_task_exception',
         'data': {'data': 'public'},
         'started': True,
         'finished': True,
         'success': False,
         'error': 'Something bad happened',
     })