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

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

    commentable_id = getattr(self, commentable_id)
    self.client.login(username=getattr(self, user).username, password=self.password)
    response = self.client.post(reverse('create_thread', kwargs={'course_id': unicode(self.course.id), 'commentable_id': commentable_id}), data={'body': 'foo', 'title': 'foo', 'thread_type': 'discussion'})
    self.assertEqual(response.status_code, status_code)
