'Verify that following of commentables is limited to members of the team or users with
\'edit_content\' permission.'

@ddt.data(*ddt_permissions_args)
@ddt.unpack
def test_commentable_actions(self, user, commentable_id, status_code, __):

    commentable_id = getattr(self, commentable_id)
    self.client.login(username=getattr(self, user).username, password=self.password)
    for action in ['follow_commentable', 'unfollow_commentable']:
        response = self.client.post(reverse(action, kwargs={'course_id': unicode(self.course.id), 'commentable_id': commentable_id}))
        self.assertEqual(response.status_code, status_code)
