'Ensure that archived courses are shown as expected for all user types, when the feature is enabled/disabled.
Also ensure that enabling the feature does not adversely affect the database query count.'

@ddt.data((True, 'staff', None, 4, 21), (False, 'staff', None, 4, 21), (True, 'user', ORG, 3, 17), (False, 'user', ORG, 3, 17), (True, 'user', None, 3, 17), (False, 'user', None, 3, 17))
@ddt.unpack
def test_separate_archived_courses(self, separate_archived_courses, username, org, mongo_queries, sql_queries):

    user = getattr(self, username)
    password = getattr(self, (username + '_password'))
    self.client.login(username=user, password=password)
    features = settings.FEATURES.copy()
    features['ENABLE_SEPARATE_ARCHIVED_COURSES'] = separate_archived_courses
    with override_settings(FEATURES=features):
        self.check_index_page_with_query_count(separate_archived_courses=separate_archived_courses, org=org, mongo_queries=mongo_queries, sql_queries=sql_queries)
