Beispiel #1
0
 def test_user_name_shown(self):
     self.login()
     expected_line = 'Logged in: %s' % TEST_USER_NAME
     self.assertEquals(expected_line, get_user_name(self.get_index_page()))
Beispiel #2
0
 def test_no_user_line_when_anonymous(self):
     self.assertIsNone(get_user_name(self.get_index_page()))
Beispiel #3
0
 def test_account_data(self):
     self.login(USER_NAME_1)
     account_page = self.get_account_page()
     self.assertEquals(USER_NAME_1, get_user_name(account_page))
     self.assertEquals(USER_FIRST_1, get_user_first_name(account_page))
     self.assertEquals(USER_MAIL_1, get_user_email(account_page))