Did I find the right examples for you? yes no

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/d/y/Dyko-0.2/kraken/tests/test_routing.py   Dyko(Download)
    def test_message(self):
        """Test a static template."""
        response = self.client.get("/helloparam/world/")
        self._check_hello_template(response, "world")
 
    def test_methods(self):
        """Test a template available with POST and GET methods."""
        response = self.client.get("/methods/")
        self._check_hello_template(response, "GET world")
        response = self.client.post("/methods/")
        self._check_hello_template(response, "POST world")
    def test_hello(self):
        """Test a template waiting for parameters."""
        response = self.client.get("/hello/?name=World")
        self._check_hello_template(response)
 
    def test_othertemplate(self):
        """Test a template called by a controller with a different name."""
        response = self.client.get("/another/template/World")
        self._check_hello_template(response)

src/d/y/Dyko-0.2/kraken/tests/test_simple_requests.py   Dyko(Download)
    def test_index(self):
        """Test an index path."""
        response = self.client.get("/")
        self._check_hello_template(response, "root")
 
    def test_hello(self):
        """Test a template waiting for parameters."""
        response = self.client.get("/hello/?name=World")
        self._check_hello_template(response)