'Verify that we only warn about block_types that are both deprecated and enabled.'

@ddt.data((['a', 'b', 'c'], ['a', 'b', 'c']), (['a', 'b', 'c'], ['a', 'b', 'd']), (['a', 'b', 'c'], ['a', 'd', 'e']), (['a', 'b', 'c'], ['d', 'e', 'f']))
@ddt.unpack
def test_verify_warn_only_on_enabled_modules(self, enabled_block_types, deprecated_block_types):

    expected_block_types = list((set(enabled_block_types) & set(deprecated_block_types)))
    course_module = modulestore().get_item(self.course.location)
    self._create_test_data(course_module, create_blocks=True, block_types=enabled_block_types)
    info = _deprecated_blocks_info(course_module, deprecated_block_types)
    self._verify_deprecated_info(course_module.id, course_module.advanced_modules, info, expected_block_types)
