我这里有个奇怪的问题。我正在尝试测试一个@login_required视图,所以我写了这段代码:from django.test import Clientmodels import Client as TestDbClient
class DataBaseTestCase(TestCaseself.c.login(username=self.user.ema
她的权限是我想要进行单元测试的示例权限。owner of the organization to do a certian task. def has_object_permission(self, request, viewexcept Membership.DoesNotExist:下面是它的应用方法# viewsets.py
class Or