def test_thread_timeline(self): active_timeline = self.controller.timelines.active active_timeline.add_status(create_status()) # make sure that there is at least one status in the active timeline self.assertTrue(active_timeline.active) self.controller.append_thread_timeline() appended_timeline = self.timelines[-1] self.assertTrue(is_thread_timeline(appended_timeline))
def test_is_thread_timeline(self): a_timeline = Timeline() self.assertFalse(is_thread_timeline(a_timeline)) thread_timeline = Timeline(update_function=mock_api.get_thread) self.assertTrue(is_thread_timeline(thread_timeline))