'Staff markup should not be present on detached blocks.'

@XBlock.register_temp_plugin(DetachedXBlock, identifier='detached-block')
def test_staff_debug_info_disabled_for_detached_blocks(self):

    descriptor = ItemFactory.create(category='detached-block', display_name='Detached    Block')
    field_data_cache = FieldDataCache.cache_for_descriptor_descendents(self.course.id, self.user, descriptor)
    module = render.get_module(self.user, self.request, descriptor.location, field_data_cache)
    result_fragment = module.render(STUDENT_VIEW)
    self.assertNotIn('Staff    Debug', result_fragment.content)
