我正在尝试使用Mox模拟django过滤器查询。我正在遵循Mox网站上的说明,然而,由于我的django查询是一个链式方法,它报告AndReturn()方法不存在。" Unit test for CheckNameUniqueness function """
self.device_mocker = mox.Moxdevice.objects.filter(name__iexact=device.name).AndRetu
accounts/tests/testaccountserver.py", line 102, in test_create_account_writes_an_account_to_the_store File "/home/tom/envs/myappshare/lib/python2.7/site-packages/mox.py", line 286, in VerifyAll_V