'Tests the disabled_xblocks method'

def test_disabled_blocks(self):

    disabled_xblock_names = [block.name for block in disabled_xblocks()]
    self.assertItemsEqual(['survey'], disabled_xblock_names)
    XBlockConfiguration(name='poll', enabled=False, deprecated=True).save()
    disabled_xblock_names = [block.name for block in disabled_xblocks()]
    self.assertItemsEqual(['survey', 'poll'], disabled_xblock_names)
