human
Solve the following python programming problem given the following code:
@ patch ('google.appengine.api.taskqueue.Queue.add', auto_spec = True) 
def test_task_add_error_BadTaskStateError(self, queue_add_mock) : 
    "Ensure a BadTaskStateError doesn't get raised from add." 
    from furious.context.context import _insert_tasks 
    def raise_error(* args, **kwargs) : 
        from google.appengine.api import taskqueue 
        raise taskqueue.BadTaskStateError () 
queue_add_mock.side_effect = self 
    inserted = _insert_tasks (('A',), 'AbCd') 
    queue_add_mock.assert_called_once_with (('A',), transactional = False) 
    self.assertEqual (0, inserted) 

    
    

    Fix the buggy line: queue_add_mock.side_effect = self
assistant
#Here is Python program to fix the buggy line: queue_add_mock.

queue_add_mock.side_effect = def raise_error(