diff tests/suite_12_methods/files/name_lc.pspx @ 71:88adf10be709 draft

Add tests.
author David Barts <n5jrn@me.com>
date Mon, 15 Jul 2019 13:16:31 -0700
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/suite_12_methods/files/name_lc.pspx	Mon Jul 15 13:16:31 2019 -0700
@@ -0,0 +1,22 @@
+#rem A page that accepts both GET and POST requests (non UC version,
+#rem to verify case insensitivity of request methods).
+#methods Get post
+#python name.py
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>Form Test</title>
+  </head>
+  <body>
+    <h1>Form Test</h1>
+    <h2>Enter Your Name Below</h2>
+    <form method="post">
+      <input type="text" name="name"/>
+      <input type="submit" value="Submit"/>
+    </form>
+    <if tal:condition="message is not None" tal:omit-tag="True">
+      <h2 tal:content="message.subject"></h2>
+      <p tal:attributes="style message.style" tal:content="message.body"></p>
+    </if>
+  </body>
+</html>