def METHOD_NAME(self):
    def call(response, *args, **kwargs):
        return response.http_response
    # trigger generate recommendations
    response = self.client.recommendations.generate(cls=call)
    # we should get a valid Location header back
    assert 'Location' in response.headers
    location = response.headers['Location']
    # extract the operation ID from the Location header
    operation_id = re.findall("[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", location)
    # the operation ID should be a valid GUID
    assert operation_id != None
    assert len(operation_id), 1
    # we should be able to get generation status for this operation ID
    response = self.client.recommendations.get_generate_status(
        cls=call,
        operation_id = operation_id[0]
    )
    status_code = response.status_code
    # and the status should be 202 or 204
    assert status_code == 202 or status_code == 204