Revision 5dcf6618 snf-astakos-app/astakos/im/tests.py

b/snf-astakos-app/astakos/im/tests.py
1341 1341
        r = self.member_client.post(join_url, follow=True)
1342 1342
        self.assertEqual(r.status_code, 200)
1343 1343

  
1344
        self.assertEqual(ProjectMembership.objects.count(), 1)
1344
        memberships = ProjectMembership.objects.all()
1345
        self.assertEqual(len(memberships), 1)
1346
        memb_id = memberships[0].id
1345 1347

  
1346 1348
        reject_member_url = reverse('project_reject_member',
1347 1349
                                    kwargs={'chain_id': app1_id, 'memb_id':
1348
                                            self.member.pk})
1350
                                            memb_id})
1349 1351
        accept_member_url = reverse('project_accept_member',
1350 1352
                                    kwargs={'chain_id': app1_id, 'memb_id':
1351
                                            self.member.pk})
1353
                                            memb_id})
1352 1354

  
1353 1355
        # only project owner is allowed to reject
1354 1356
        r = self.member_client.post(reject_member_url, follow=True)
......
1380 1382

  
1381 1383
        remove_member_url = reverse('project_remove_member',
1382 1384
                                    kwargs={'chain_id': app1_id, 'memb_id':
1383
                                            self.member.pk})
1385
                                            membership.id})
1384 1386
        r = self.user_client.post(remove_member_url, follow=True)
1385 1387
        self.assertEqual(r.status_code, 200)
1386 1388

  

Also available in: Unified diff