'Returns `selector`, but limited to this particular `CourseOutlineItem` context'

def _bounded_selector(self, selector):

    if (self.BODY_SELECTOR and hasattr(self, 'locator')):
        return '{}[data-locator="{}"]    {}'.format(self.BODY_SELECTOR, self.locator, selector)
    else:
        return selector
