Index: main/waeup.cas/trunk/waeup/cas/tests/sample2.ini
===================================================================
--- main/waeup.cas/trunk/waeup/cas/tests/sample2.ini	(revision 10351)
+++ main/waeup.cas/trunk/waeup/cas/tests/sample2.ini	(revision 10351)
@@ -0,0 +1,3 @@
+# A sample config to run WSGI components with paster
+[app:main]
+use = egg:waeup.cas#server
Index: main/waeup.cas/trunk/waeup/cas/tests/test_server.py
===================================================================
--- main/waeup.cas/trunk/waeup/cas/tests/test_server.py	(revision 10349)
+++ main/waeup.cas/trunk/waeup/cas/tests/test_server.py	(revision 10351)
@@ -38,4 +38,17 @@
         assert isinstance(app, CASServer)
 
+    def test_init(self):
+        # we get a db dir set automatically
+        app = CASServer()
+        assert hasattr(app, 'db_path')
+        assert app.db_path is not None
+        assert os.path.exists(os.path.dirname(app.db_path))
+
+    def test_init_explicit_db_path(self):
+        # we can set a db_path explicitly
+        app = CASServer(db_path=self.db_path)
+        assert hasattr(app, 'db_path')
+        assert app.db_path == self.db_path
+
     def test_call_root(self):
         # the CAS protocol requires no root
