Changeset 13529 for main/waeup.kofa/trunk/src/waeup/kofa/hostels/tests.py
- Timestamp:
- 2 Dec 2015, 20:15:36 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/hostels/tests.py
r13484 r13529 201 201 self.assertEqual(len(results), 1) 202 202 self.browser.open(self.container_path + '/releaseexpired') 203 self.assertTrue('Portal must be in maintenance mode for releasing expired bed allocations' 204 in self.browser.contents) 205 grok.getSite()['configuration'].maintmode_enabled_by = u'any_id' 206 self.browser.open(self.container_path + '/releaseexpired') 203 207 self.assertTrue('No bed released' in self.browser.contents) 204 208 delta = timedelta(days=10) … … 339 343 hall.beds_for_final = ['C'] 340 344 hall.beds_for_all = ['D','E'] 345 self.browser.getControl("Update all beds").click() 346 self.assertTrue('Portal must be in maintenance mode for bed updates' 347 in self.browser.contents) 348 grok.getSite()['configuration'].maintmode_enabled_by = u'any_id' 341 349 self.browser.getControl("Update all beds").click() 342 350 expected = '...0 empty beds removed, 10 beds added, 0 occupied beds modified ()...' … … 507 515 508 516 def test_clear_hostels(self): 517 grok.getSite()['configuration'].maintmode_enabled_by = u'any_id' 509 518 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 510 519 self.browser.open(self.container_path)
Note: See TracChangeset for help on using the changeset viewer.