[Checkins] SVN: van.timeformat/trunk/ Re-add tests mistakenly removed.

Brian Sutherland jinty at web.de
Thu Nov 20 19:20:27 EST 2008


Log message for revision 93211:
  Re-add tests mistakenly removed.

Changed:
  U   van.timeformat/trunk/CHANGES.txt
  U   van.timeformat/trunk/van/timeformat/zpt.txt

-=-
Modified: van.timeformat/trunk/CHANGES.txt
===================================================================
--- van.timeformat/trunk/CHANGES.txt	2008-11-21 00:14:55 UTC (rev 93210)
+++ van.timeformat/trunk/CHANGES.txt	2008-11-21 00:20:26 UTC (rev 93211)
@@ -4,7 +4,7 @@
 1.0.1 (unknown)
 ------------------
 
-- ???
+- Re-add tests mistakenly removed.
 
 1.0.0 (2008-11-21)
 ------------------

Modified: van.timeformat/trunk/van/timeformat/zpt.txt
===================================================================
--- van.timeformat/trunk/van/timeformat/zpt.txt	2008-11-21 00:14:55 UTC (rev 93210)
+++ van.timeformat/trunk/van/timeformat/zpt.txt	2008-11-21 00:20:26 UTC (rev 93211)
@@ -34,7 +34,20 @@
       </body>
     </html>
 
+Using the german locale:
 
+    >>> request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'de-de'})
+    >>> print Page(None, request)().strip()
+    <html>
+      <body>
+          RFC 2822 date         : Wed, 17 Dec 1975 05:24:36 +0000
+          Medium Date           : 17.12.1975
+          Medium DateTime       : 17.12.1975 05:24:36
+          Python Expr (ltimefmt): 17. Dezember 1975 00:00:00 +000
+          Python Expr (timefmt) : Wed, 17 Dec 1975 00:00:00 +0000
+      </body>
+    </html>
+
 Let's see if it works with spaces after the colon (at various places):
 
     >>> open(temp_file, 'w').write("""



More information about the Checkins mailing list