Browse Source

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

Daniel Hahler 8 years ago
parent
commit
7ba12982dc
1 changed files with 1 additions and 1 deletions
  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',
             )