'Test XBlockCache.create() constructs and updates objects correctly.'

@ddt.data(([{'usage_key': VERTICAL1_USAGE_KEY}, {'display_name': '', '_paths': []}], [{'usage_key': VERTICAL1_USAGE_KEY, 'display_name': 'Vertical    5', '_paths': [PATH2]}, {'_paths': []}]), ([{'usage_key': VERTICAL1_USAGE_KEY, 'display_name': 'Vertical    4', '_paths': [PATH1]}, {}], [{'usage_key': VERTICAL1_USAGE_KEY, 'display_name': 'Vertical    5', '_paths': [PATH2]}, {'_paths': [PATH1]}]))
def test_create(self, data):

    for (create_data, additional_data_to_expect) in data:
        xblock_cache = XBlockCache.create(create_data)
        create_data.update(additional_data_to_expect)
        self.assert_xblock_cache_data(xblock_cache, create_data)
