def test_own_tweets_timeline(self): self.controller.append_own_tweets_timeline() appended_timeline = self.timelines[-1] self.assertTrue(is_own_timeline(appended_timeline))
def test_is_own_timeline(self): a_timeline = Timeline() self.assertFalse(is_own_timeline(a_timeline)) own_timeline = Timeline(update_function=mock_api.get_own_timeline) self.assertTrue(is_own_timeline(own_timeline))