예제 #1
0
 def test_get_task_id_missing_value(self):
     with self.assertRaises(KeyError):
         ce.get_task_id({'task_id': {}})
예제 #2
0
 def test_get_task_id_empty_dictionary(self):
     with self.assertRaises(KeyError):
         ce.get_task_id({})
예제 #3
0
 def test_get_task_id(self):
     task_id = tu.get_random_task_id()
     task = {'task_id': {'value': task_id}}
     self.assertEqual(task_id, ce.get_task_id(task))