[pypy-svn] r10780 - pypy/dist/pypy/documentation
hpk at codespeak.net
hpk at codespeak.net
Sun Apr 17 19:05:08 CEST 2005
Author: hpk
Date: Sun Apr 17 19:05:07 2005
New Revision: 10780
Added:
pypy/dist/pypy/documentation/redirections
pypy/dist/pypy/documentation/test_redirections.py
Log:
helper for the web site: we list redirections
of documents here in the 'redirections' file
containing a dictionary.
Added: pypy/dist/pypy/documentation/redirections
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/documentation/redirections Sun Apr 17 19:05:07 2005
@@ -0,0 +1,5 @@
+# please make sure this is evaluatable
+{
+ 'aaa.html': 'architecture.html',
+}
+
Added: pypy/dist/pypy/documentation/test_redirections.py
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/documentation/test_redirections.py Sun Apr 17 19:05:07 2005
@@ -0,0 +1,15 @@
+
+import py
+redir = py.magic.autopath().dirpath('redirections')
+
+def checkexist(path):
+ assert path.new(ext='.txt').check(file=1)
+
+def test_eval():
+ d = eval(redir.read())
+ return d
+
+def test_redirections():
+ d = test_eval()
+ for newname in d.values():
+ yield checkexist, redir.dirpath(newname)
More information about the Pypy-commit
mailing list