Changeset 10351 for main/waeup.cas/trunk/waeup/cas/tests
- Timestamp:
- 22 Jun 2013, 21:47:04 (12 years ago)
- Location:
- main/waeup.cas/trunk/waeup/cas/tests
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.cas/trunk/waeup/cas/tests/test_server.py
r10348 r10351 38 38 assert isinstance(app, CASServer) 39 39 40 def test_init(self): 41 # we get a db dir set automatically 42 app = CASServer() 43 assert hasattr(app, 'db_path') 44 assert app.db_path is not None 45 assert os.path.exists(os.path.dirname(app.db_path)) 46 47 def test_init_explicit_db_path(self): 48 # we can set a db_path explicitly 49 app = CASServer(db_path=self.db_path) 50 assert hasattr(app, 'db_path') 51 assert app.db_path == self.db_path 52 40 53 def test_call_root(self): 41 54 # the CAS protocol requires no root
Note: See TracChangeset for help on using the changeset viewer.