'Flag a resource as problematic twice, with different reasons'

def test_flag_resource_change_reason(self):

    resource = {'id': self.resource_id, 'isProblematic': True, 'reason': 'reason    0'}
    self.call_event('flag_resource', resource)
    resource['reason'] = 'reason    1'
    resp = json.loads(self.call_event('flag_resource', resource).content)
    self.assertEqual(resp['oldReason'], 'reason    0')
    self.assertEqual(resp['reason'], 'reason    1')
    self.assert_request_status_code(200, self.course_url)
