Exemple #1
0
    def testSync1 (self):
        oldPost = self._getInitialPost()
        oldPost.markCommentsAsRead()

        newPost = self._getInitialPost()
        sync (oldPost, newPost)
        
        self.assertFalse (newPost.hasNew)
Exemple #2
0
 def testSync2 (self):
     oldPost = self._getInitialPost()
     newPost = self._getInitialPost()
     sync (oldPost, newPost)
     
     self.assertTrue (newPost.hasNew)