Changeset 12537 for main/waeup.ikoba/trunk/src/waeup/ikoba/customers
- Timestamp:
- 1 Feb 2015, 07:38:12 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba/customers
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/interfaces.py
r12523 r12537 128 128 email = TextLineChoice( 129 129 title = _(u'Email'), 130 required = False,130 required = True, 131 131 constraint=validate_email, 132 132 source = contextual_email_source, -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/sample_customer_data.csv
r12521 r12537 1 customer_id,firstname,lastname,reg_number,date_of_birth, ,phone,sex,state1 customer_id,firstname,lastname,reg_number,date_of_birth,email,phone,sex,state 2 2 X666666,Aaren,Pieri,1,1990-01-02,aa@aa.ng,1234,M,requested 3 3 Y777777,Claus,Finau,2,1990-01-03,bb@aa.ng,1234,m,requested -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_batching.py
r12521 r12537 137 137 customer.lastname = u'Tester' 138 138 customer.middlename = u'M.' 139 customer.email = u'bb@bb.bb' 139 140 customer.date_of_birth = datetime.date(1981, 2, 4) 140 141 #customer.sex = 'f' -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py
r12533 r12537 351 351 # Managers can contact customer 352 352 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 353 self.customer.email = None354 353 self.browser.open(self.customer_path) 355 354 self.browser.getLink("Send email").click() 356 355 self.browser.getControl(name="form.subject").value = 'Important subject' 357 356 self.browser.getControl(name="form.body").value = 'Hello!' 358 self.browser.getControl("Send message now").click()359 self.assertTrue('An smtp server error occurred' in self.browser.contents)360 self.customer.email = u'xx@yy.zz'361 357 self.browser.getControl("Send message now").click() 362 358 self.assertTrue('Your message has been sent' in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.