Exemple #1
0
 def show_thread(self, thread_id):
     discussion_page = InlineDiscussionPage(self.browser, self.discussion_id)
     if not discussion_page.is_discussion_expanded():
         discussion_page.expand_discussion()
     self.assertEqual(discussion_page.get_num_displayed_threads(), 1)
     discussion_page.show_thread(thread_id)
     self.thread_page = discussion_page.thread_page  # pylint: disable=attribute-defined-outside-init
 def show_thread(self, thread_id):
     discussion_page = InlineDiscussionPage(self.browser, self.discussion_id)
     discussion_page.expand_discussion()
     self.assertEqual(discussion_page.get_num_displayed_threads(), 1)
     self.thread_page = InlineDiscussionThreadPage(self.browser, thread_id)  # pylint: disable=attribute-defined-outside-init
     self.thread_page.expand()
Exemple #3
0
 def discussion_page(self):
     """Get the discussion as a bok_choy page object"""
     if not hasattr(self, '_discussion_page'):
         # pylint: disable=attribute-defined-outside-init
         self._discussion_page = InlineDiscussionPage(self.browser, self.discussion_id)
     return self._discussion_page