Changeset 10352 for main/waeup.cas
- Timestamp:
- 22 Jun 2013, 21:53:53 (11 years ago)
- Location:
- main/waeup.cas/trunk/waeup/cas/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.cas/trunk/waeup/cas/tests/sample2.ini
r10351 r10352 1 1 # A sample config to run WSGI components with paster 2 # This config is with all possible options set explicitly. 2 3 [app:main] 3 4 use = egg:waeup.cas#server 5 # what file to use to store tickets, credentials, etc. 6 db_path = /a/path/to/cas.db -
main/waeup.cas/trunk/waeup/cas/tests/test_server.py
r10351 r10352 21 21 self.paste_conf1 = os.path.join( 22 22 os.path.dirname(__file__), 'sample1.ini') 23 self.paste_conf2 = os.path.join( 24 os.path.dirname(__file__), 'sample2.ini') 23 25 24 26 def tearDown(self): … … 32 34 app = loadapp('config:%s' % self.paste_conf1) 33 35 assert isinstance(app, CASServer) 36 assert hasattr(app, 'db_path') 37 assert app.db_path is not None 34 38 35 39 def test_paste_deploy_options(self): 36 40 # we can set CAS server-related options via paste.deploy config 37 app = loadapp('config:%s' % self.paste_conf 1)41 app = loadapp('config:%s' % self.paste_conf2) 38 42 assert isinstance(app, CASServer) 43 assert app.db_path == '/a/path/to/cas.db' 39 44 40 45 def test_init(self):
Note: See TracChangeset for help on using the changeset viewer.