def test_get_users_with_mailing_lists(self):
        users_with_mailing_list_ids = [user._id for user in get_users_with_no_mailchimp_mailing_lists()]

        assert_equal(len(users_with_mailing_list_ids), 2)

        assert_true(self.user1._id in users_with_mailing_list_ids)
        assert_true(self.user2._id in users_with_mailing_list_ids)
        assert_false(self.user3._id in users_with_mailing_list_ids)
dataset/ETHPy150Open CenterForOpenScience/osf.io/scripts/tests/test_migrate_mailing_lists_to_mailchimp_field.py/TestMigrateMailingLists.test_get_users_with_mailing_lists/original