human
Solve the following python programming problem given the following code:
@ patch ('time.time') 
def test_run_calculates_duration(self, time_time) : 
    step = Step ('foo.feature', 17, 'Given', 'given', 'foo') 
    match = Mock () 
    self.runner.step_registry.find_match.return_value = match 
    def time_time_1() : 
        def time_time_2() : 
            return 23 
time_time.side_effect = time_time_2 
        return 17 
side_effects = (None, raiser (AssertionError ('whee')), raiser (Exception ('whee'))) 
    for side_effect in side_effect : 
        match.run.side_effect = side_effect 
        time_time.side_effect = time_time_1 
        step.run (self.runner) 
        eq_ (step.duration, (23 - 17)) 

    
    

    Fix the buggy line: for side_effect in side_effect :
assistant
#Here is Python code to fix the buggy line: for side_effect in side_effect :
.

for side_effect in side_effects :