'Verify that the header language selector config is correct.'

@ddt.data(({'SHOW_HEADER_LANGUAGE_SELECTOR': True}, {}, True), ({'SHOW_HEADER_LANGUAGE_SELECTOR': False}, {'SHOW_HEADER_LANGUAGE_SELECTOR': True}, True), ({'SHOW_HEADER_LANGUAGE_SELECTOR': True}, {'SHOW_HEADER_LANGUAGE_SELECTOR': False}, False), ({'SHOW_HEADER_LANGUAGE_SELECTOR': False, 'SHOW_LANGUAGE_SELECTOR': True}, {}, True), ({'SHOW_HEADER_LANGUAGE_SELECTOR': False}, {'SHOW_LANGUAGE_SELECTOR': True}, True))
@ddt.unpack
def test_header_language_selector_is_enabled(self, base_config, site_config, expected):

    with patch.dict('django.conf.settings.FEATURES', base_config):
        with with_site_configuration_context(configuration=site_config):
            self.assertEqual(language_api.header_language_selector_is_enabled(), expected)
