Anonymous user
Adding a field to the profile: Difference between revisions
→Testing
imported>Mark No edit summary |
imported>Mark |
||
Line 397:
'''
* Goes to paulproteus's profile
* checks that they don't already have a birthday that says "
* clicks edit on the birthday area
* enters a string as birthday
Line 404:
self.login_with_twill()
tc.go(make_twill_url('http://openhatch.org/people/paulproteus/'))
tc.notfind('
tc.go(make_twill_url('http://openhatch.org/profile/views/edit_info'))
# make sure our birthday is not already on the form
tc.notfind('
# set the birthday in the form
tc.fv("edit-tags", 'edit-tags-birthday', '
tc.submit()
# find the string we just submitted as our birthday
tc.find('
self.assertEqual(Person.get_by_username('paulproteus').birthday, "
# now we should see our birthday in the edit form
tc.go(make_twill_url('http://openhatch.org/profile/views/edit_info'))
tc.find('
</pre></div>
|