'Call the event specified by the handler with the resource, and check
whether the http_status in response is as expected'

def check_event_response_by_http_status(self, handler, resource, http_status_code, xblock_name=None):

    if (xblock_name is None):
        xblock_name = TestRecommender.XBLOCK_NAMES[0]
    resp = self.call_event(handler, resource, xblock_name)
    self.assertEqual(resp.status_code, http_status_code)
    self.assert_request_status_code(200, self.course_url)
