Changeset 10352 for main/waeup.cas/trunk/waeup/cas/tests/test_server.py
- Timestamp:
- 22 Jun 2013, 21:53:53 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.