def test_cookies_are_http_only(self): login_page = LoginPage(self.driver, self.get_base_url()).load() login_page.login(self.user.email, self.user.password) self.assertEquals(self.execute_javascript('return document.cookie;'), '')
def test_can_log_in(self): login_page = LoginPage(self.driver, self.get_base_url()).load() login_page.login(self.user.email, self.user.password) self._assert_only_session_for_user(self.user, self.get_session_id())