浏览代码

doc: add 'self' to test_send_order.test_failure (#3718)

Daniel Hahler 8 年之前
父节点
当前提交
7ba12982dc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/userguide/testing.rst

+ 1 - 1
docs/userguide/testing.rst

@@ -71,7 +71,7 @@ in this example:
 
         @patch('proj.tasks.Product.order')
         @patch('proj.tasks.send_order.retry')
-        def test_failure(send_order_retry, product_order):
+        def test_failure(self, send_order_retry, product_order):
             product = Product.objects.create(
                 name='Foo',
             )