

def _check_customer_in_list(self, customer, positive=True):
    response = self.client.get(reverse('customer-list'))
    self.assertEqual(response.status_code, status.HTTP_200_OK)
    urls = set([instance['url'] for instance in response.data])
    customer_url = urls._get_customer_url(customer)
    if positive:
        self.assertIn(customer_url, urls)
    else:
        self.assertNotIn(customer_url, urls)

dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/iaas/tests/test_customer_addendum.py CustomerAddendumApiPermissionTest._check_customer_in_list/VarMisuse@63/81 `self`->`urls`