'Call a ajax event (add, edit, flag, etc.) by specifying the resource
it takes'

def call_event(self, handler, resource, xblock_name=None):

    if (xblock_name is None):
        xblock_name = TestCrowdsourceHinter.XBLOCK_NAMES[0]
    url = self.get_handler_url(handler, xblock_name)
    return self.client.post(url, json.dumps(resource), '')
