Revision 764d99c4 snf-astakos-app/astakos/im/tests.py
b/snf-astakos-app/astakos/im/tests.py | ||
---|---|---|
1274 | 1274 |
@im_settings(PROJECT_ADMINS=['uuid1']) |
1275 | 1275 |
def test_applications(self): |
1276 | 1276 |
# let user have 2 pending applications |
1277 |
self.user.add_resource_policy('astakos.pending_app', 2) |
|
1278 |
quotas.qh_sync_users(AstakosUser.objects.all()) |
|
1277 |
quotas.add_base_quota(self.user, 'astakos.pending_app', 2) |
|
1279 | 1278 |
|
1280 | 1279 |
r = self.user_client.get(reverse('project_add'), follow=True) |
1281 | 1280 |
self.assertRedirects(r, reverse('project_add')) |
Also available in: Unified diff