

def test_group_manger_can_see_all_clouds_of_customer(self):
    self.client.force_authenticate(user=self.users['group_manager'])
    seen_clouds = self.clouds.values()
    response = self.client.get(self._get_customer_url(self.customer))
    self.assertEqual(response.status_code, status.HTTP_200_OK)
    self.assertIn('clouds', response.data, 'Customer must contain cloud list')
    cloud_urls = set([cloud['url'] for cloud in response.data['clouds']])
    for seen_cloud in seen_clouds:
        self.assertIn(seen_cloud._get_cloud_url(seen_cloud), cloud_urls, 'Group manager should see all customer clouds')

dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/iaas/tests/test_customer_addendum.py CustomerAddendumApiPermissionTest.test_group_manger_can_see_all_clouds_of_customer/VarMisuse@112/168 `self`->`seen_cloud`