瀏覽代碼

fix(api): corrects faulty class doc

Nils Wisiol 6 年之前
父節點
當前提交
6cc86a418f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      api/desecapi/tests/base.py

+ 2 - 2
api/desecapi/tests/base.py

@@ -179,8 +179,8 @@ class MockPDNSTestCase(APITestCase):
     This test case provides a "mocked Internet" environment with a mock pdns API interface. All internet connections,
     This test case provides a "mocked Internet" environment with a mock pdns API interface. All internet connections,
     HTTP or otherwise, that this test case is unaware of will result in an exception.
     HTTP or otherwise, that this test case is unaware of will result in an exception.
 
 
-    By default, requests are intercepted but unexpected and result in a failed test. To set pdns API request
-    expectations, use the `with MockPDNSTestCase.assertPdns*` functions.
+    By default, requests are intercepted but unexpected will result in a failed test. To set pdns API request
+    expectations, use the `with MockPDNSTestCase.assertPdns*` context managers.
 
 
     Subclasses may not touch httpretty.enable() or httpretty.disable(). For 'local' usage, httpretty.register_uri()
     Subclasses may not touch httpretty.enable() or httpretty.disable(). For 'local' usage, httpretty.register_uri()
     and httpretty.reset() may be used.
     and httpretty.reset() may be used.