From e037fe05ff1f0c2893b3f51e06e0261ca4245d63 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Tue, 7 Jun 2016 12:55:32 +1200 Subject: Migrate pathod docs to Sphinx All the content of the pathod docs are moved into Sphinx. The interactive format has not translated well to static docs, and there's still a lot of rewriting, format fixing, structuring, etc to be done. --- pathod/templates/examples_setup.html | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 pathod/templates/examples_setup.html (limited to 'pathod/templates/examples_setup.html') diff --git a/pathod/templates/examples_setup.html b/pathod/templates/examples_setup.html deleted file mode 100644 index b8419171..00000000 --- a/pathod/templates/examples_setup.html +++ /dev/null @@ -1,32 +0,0 @@ -
import requests
-from pathod import test
-
-
-class Test:
-
-    """
-        Testing the requests module with
-        a pathod instance started for
-        each test.
-    """
-
-    def setUp(self):
-        self.d = test.Daemon()
-
-    def tearDown(self):
-        self.d.shutdown()
-
-    def test_simple(self):
-        # Get a URL for a pathod spec
-        url = self.d.p("200:b@100")
-        # ... and request it
-        r = requests.put(url)
-
-        # Check the returned data
-        assert r.status_code == 200
-        assert len(r.content) == 100
-
-        # Check pathod's internal log
-        log = self.d.last_log()["request"]
-        assert log["method"] == "PUT"
-
-- cgit v1.2.3