'Returns an XBlockFixtureDesc with a section, subsection, and possibly unit that has the given state.'

def _build_fixture(self, unit_state):

    name = unit_state.name
    start = (datetime(1984, 3, 4) if unit_state.is_released else (datetime.now(UTC) + timedelta(1))).isoformat()
    subsection = XBlockFixtureDesc('sequential', name, metadata={'start': start})
    return XBlockFixtureDesc('chapter', name).add_children((subsection if (unit_state.publish_state == self.PublishState.NEVER_PUBLISHED) else subsection.add_children(XBlockFixtureDesc('vertical', name, metadata={'visible_to_staff_only': (True if unit_state.is_locked else None)}))))
