Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Unified Diff: third_party/buildbot_7_12/buildbot/test/test_changemaster.py

Issue 12207158: Bye bye buildbot 0.7.12. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/buildbot_7_12/buildbot/test/test_changemaster.py
diff --git a/third_party/buildbot_7_12/buildbot/test/test_changemaster.py b/third_party/buildbot_7_12/buildbot/test/test_changemaster.py
deleted file mode 100644
index 5069a636d6996296cb2330a011b166899552d911..0000000000000000000000000000000000000000
--- a/third_party/buildbot_7_12/buildbot/test/test_changemaster.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# -*- test-case-name: buildbot.test.test_changemaster -*-
-
-from twisted.trial import unittest
-
-from buildbot.changes.changes import *
-
-class _DummyParent:
- def __init__(self):
- self.changes = []
- def addChange(self, change):
- self.changes.append(change)
-
- def addService(self, child):
- pass
-
-class TestMaster(unittest.TestCase):
- def testAddChange(self):
- parent = _DummyParent()
- master = TestChangeMaster()
- master.setServiceParent(parent)
-
- change = Change('user', [], 'comments')
-
- master.addChange(change)
-
- self.failUnlessEqual(parent.changes, [change])
-
- def testChangeHorizon(self):
- parent = _DummyParent()
- master = TestChangeMaster()
- master.setServiceParent(parent)
- master.changeHorizon = 3
-
- changes = []
- for i in range(4):
- change = Change('user', [], 'comment %i' % i)
- master.addChange(change)
- changes.append(change)
-
- changes = changes[-3:]
-
- self.failUnlessEqual(master.changes, changes)
-
- def testNoChangeHorizon(self):
- parent = _DummyParent()
- master = TestChangeMaster()
- master.setServiceParent(parent)
- master.changeHorizon = 0
-
- changes = []
- for i in range(4):
- change = Change('user', [], 'comment %i' % i)
- master.addChange(change)
- changes.append(change)
-
- changes = changes[:]
-
- self.failUnlessEqual(master.changes, changes)
« no previous file with comments | « third_party/buildbot_7_12/buildbot/test/test_buildstep.py ('k') | third_party/buildbot_7_12/buildbot/test/test_changes.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698