def _set_and_test_adapter_list(self, adapterIDs, priority, limit):
    for adapterID in adapterIDs:
        speedify.adapter_priority(adapterID, priority)
        speedify.adapter_ratelimit(adapterID, limit)
        speedify.adapter_datalimit_daily(adapterID, limit)
        speedify.adapter_datalimit_monthly(adapterID, limit, 0)
    updated_adapters = speedify.show_adapters()
    priorities = [adapter['priority'] for adapter in updated_adapters]
    rate_limits = [adapter['rateLimit'] for adapter in updated_adapters]
    daily_limits = [adapter['dataUsage']['usageDailyLimit'] for adapter in updated_adapters]
    monthly_limits = [adapter['dataUsage']['usageMonthlyLimit'] for adapter in updated_adapters]
    for (set_priority, rate_limit, daily_limit, monthly_limit) in zip(priorities, rate_limits, daily_limits, monthly_limits):
        if (set_priority != Priority.NEVER.value):
            self.assertEqual(set_priority, priority.value)
        self.assertEqual(rate_limit, limit)
        self.assertEqual(daily_limit, limit)
        self.assertEqual(monthly_limit, limit)
def _set_and_test_adapter_list(self, adapterIDs, priority, limit):
    for adapterID in adapterIDs:
        speedify.adapter_priority(adapterID, priority)
        speedify.adapter_ratelimit(adapterID, limit)
        speedify.adapter_datalimit_daily(adapterID, limit)
        speedify.adapter_datalimit_monthly(adapterID, limit, 0)
    updated_adapters = speedify.show_adapters()
    priorities = [adapter['priority'] for adapter in updated_adapters]
    rate_limits = [adapter['rateLimit'] for adapter in updated_adapters]
    daily_limits = [adapter['dataUsage']['usageDailyLimit'] for adapter in updated_adapters]
    monthly_limits = [adapter['dataUsage']['usageMonthlyLimit'] for adapter in updated_adapters]
    for (set_priority, rate_limit, daily_limit, monthly_limit) in zip(priorities, rate_limits, daily_limits, monthly_limits):
        if (set_priority != Priority.NEVER.value):
            self.assertEqual(set_priority, priority.value)
        self.assertEqual(rate_limit, limit)
        self.assertEqual(daily_limit, limit)
        self.assertEqual(monthly_limit, limit)