Merge branch 'master' into duplicate-event

This commit is contained in:
David Taylor
2015-08-27 23:59:50 +01:00
9 changed files with 57 additions and 28 deletions

View File

@@ -134,6 +134,15 @@ class UserRegistrationTest(LiveServerTestCase):
udd = self.browser.find_element_by_class_name('navbar').text
self.assertIn('Hi John', udd)
# Check all the data actually got saved
profileObject = models.Profile.objects.all()[0]
self.assertEqual(profileObject.username, 'TestUsername')
self.assertEqual(profileObject.first_name, 'John')
self.assertEqual(profileObject.last_name, 'Smith')
self.assertEqual(profileObject.initials, 'JS')
self.assertEqual(profileObject.phone, '0123456789')
self.assertEqual(profileObject.email, 'test@example.com')
# All is well