Changeset 10941 for main/waeup.kwarapoly/trunk/src/waeup/kwarapoly
- Timestamp:
- 18 Jan 2014, 06:28:34 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/applicants/tests/test_browser.py
r10594 r10941 30 30 from waeup.kwarapoly.testing import FunctionalLayer 31 31 32 session = datetime.datetime.now().year - 2 33 ndftcontainer_name = u'ndft%s' % session 32 34 33 35 class ApplicantUITest(FunctionalTestCase): … … 56 58 self.ndftcontainer = ApplicantsContainer() 57 59 self.ndftcontainer.mode = 'create' 58 self.ndftcontainer.code = u'ndft2011'60 self.ndftcontainer.code = ndftcontainer_name 59 61 self.ndftcontainer.prefix = u'ndft' 60 62 self.ndftcontainer.application_category = u'ndft' 61 self.ndftcontainer.year = 201163 self.ndftcontainer.year = session 62 64 self.ndftcontainer.application_fee = 300.0 63 self.ndftcontainer.title = u'This is the ndft2011 container'64 self.app['applicants'][ 'ndft2011'] = self.ndftcontainer65 #self.ndftcontainer.title = u'This is the %s container' % ndftcontainer_name 66 self.app['applicants'][ndftcontainer_name] = self.ndftcontainer 65 67 66 68 delta = datetime.timedelta(days=10) … … 84 86 ndftapplicant.firstname = u'Anna' 85 87 ndftapplicant.lastname = u'Post' 86 self.app['applicants'][ 'ndft2011'].addApplicant(ndftapplicant)88 self.app['applicants'][ndftcontainer_name].addApplicant(ndftapplicant) 87 89 self.ndftapplication_number = ndftapplicant.application_number 88 self.ndftapplicant = self.app['applicants'][ 'ndft2011'][90 self.ndftapplicant = self.app['applicants'][ndftcontainer_name][ 89 91 self.ndftapplication_number] 90 self.ndftapplicant_path = ('http://localhost/app/applicants/ ndft2011/%s'91 % self.ndftapplication_number)92 self.ndftapplicant_path = ('http://localhost/app/applicants/%s/%s' 93 % (ndftcontainer_name, self.ndftapplication_number)) 92 94 93 95 self.browser = Browser()
Note: See TracChangeset for help on using the changeset viewer.