示例#1
0
 def test_commit_watcher(self):
     """Test that we see refs/heads/master change,
     and can read back commit messages"""
     deferred = untagged_revisions(self.workd)
     def check_none_unmatched(unmatched):
         self.assertEquals(unmatched, [])
         return add_commit(self.workd, 'a', 'b', 'xyzzy')
     deferred.addCallback(check_none_unmatched)
     deferred.addCallback(lambda _: untagged_revisions(self.workd))
     deferred.addCallback(lambda unmatched: self.assertEquals(
             len(unmatched),1))
     
     return deferred
示例#2
0
 def test_untagged(self):
     """Check that the untagged revisions are empty"""
     deferred = untagged_revisions(self.workd)
     return deferred.addCallback(lambda seq: self.assertEquals(seq, []))