'Updates the mock modulestore with a dictionary of blocks.
Arguments:
blocks ({block key, MockXBlock}) - A map of block_key
to its mock xBlock.'

def set_blocks(self, blocks):

    self.blocks = blocks
