def testSync1 (self): oldPost = self._getInitialPost() oldPost.markCommentsAsRead() newPost = self._getInitialPost() sync (oldPost, newPost) self.assertFalse (newPost.hasNew)
def testSync2 (self): oldPost = self._getInitialPost() newPost = self._getInitialPost() sync (oldPost, newPost) self.assertTrue (newPost.hasNew)