'Tests the deprecated_xblocks method'

def test_deprecated_blocks(self):

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