Commits

Thomas Waldmann committed f42ad21

docstring fixes and other cosmetic changes, added .kch to .hgignore

Comments (0)

Files changed (4)

 .~$
 .DS_Store
 .*\.sqlite
+.*\.kch
+

middleware/__init__.py

 # License: GNU GPL v2 (or any later version), see LICENSE.txt for details.
 
 """
-MoinMoin - indexing
+MoinMoin - misc. middleware
+
+Middleware sits either on a backend or on another middleware.
 """

middleware/_tests/__init__.py

 # License: GNU GPL v2 (or any later version), see LICENSE.txt for details.
 
 """
-MoinMoin - indexing tests
+MoinMoin - middleware tests
 """

middleware/_tests/test_serializer.py

+# Copyright: 2011 MoinMoin:RonnyPfannschmidt
+# License: GNU GPL v2 (or any later version), see LICENSE.txt for details.
+
+"""
+MoinMoin - serializer / deserializer tests
+"""
+
+
+from __future__ import absolute_import, division
+
 from storage.memory import BytesStorage, FileStorage
 
 from middleware.indexing import IndexingMiddleware, AccessDenied
     request.addfinalizer(backend.close)
     
     mw = IndexingMiddleware(index_dir=str(tmpdir/'foo'),
-                                  backend=backend)
+                            backend=backend)
     mw.create()
     mw.open()
     request.addfinalizer(mw.destroy)
 
 
 def test_serialize_deserialize(source, target):
-
     i = 0
     for name, meta, data in contents:
         item = source['name']
     print sorted(source.backend)
     print sorted(target.backend)
     assert sorted(source.backend)  == sorted(target.backend)
+