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

Unified Diff: third_party/buildbot_7_12/buildbot/test/test_sourcestamp.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_sourcestamp.py
diff --git a/third_party/buildbot_7_12/buildbot/test/test_sourcestamp.py b/third_party/buildbot_7_12/buildbot/test/test_sourcestamp.py
deleted file mode 100644
index e25b117b67c5918e422aec4e98bbe16fb99e1866..0000000000000000000000000000000000000000
--- a/third_party/buildbot_7_12/buildbot/test/test_sourcestamp.py
+++ /dev/null
@@ -1,70 +0,0 @@
-# -*- test-case-name: buildbot.test.test_sourcestamp -*-
-
-from twisted.trial import unittest
-
-from buildbot.sourcestamp import SourceStamp
-from buildbot.changes.changes import Change
-
-class SourceStampTest(unittest.TestCase):
- def testAsDictEmpty(self):
- EXPECTED = {
- 'revision': None,
- 'branch': None,
- 'hasPatch': False,
- 'changes': [],
- }
- self.assertEqual(EXPECTED, SourceStamp().asDict())
-
- def testAsDictBranch(self):
- EXPECTED = {
- 'revision': 'Rev',
- 'branch': 'Br',
- 'hasPatch': False,
- 'changes': [],
- }
- self.assertEqual(EXPECTED,
- SourceStamp(branch='Br', revision='Rev').asDict())
-
- def testAsDictChanges(self):
- changes = [
- Change('nobody', [], 'Comment', branch='br2', revision='rev2'),
- Change('nob', ['file2', 'file3'], 'Com', branch='br3',
- revision='rev3'),
- ]
- s = SourceStamp(branch='Br', revision='Rev', patch='Pat',
- changes=changes)
- r = s.asDict()
- del r['changes'][0]['when']
- del r['changes'][1]['when']
- EXPECTED = {
- 'revision': 'rev3',
- 'branch': 'br3',
- 'hasPatch': True,
- 'changes': [
- {
- 'branch': 'br2',
- 'category': None,
- 'comments': 'Comment',
- 'files': [],
- 'number': None,
- 'properties': [],
- 'revision': 'rev2',
- 'revlink': '',
- 'who': 'nobody'
- },
- {
- 'branch': 'br3',
- 'category': None,
- 'comments': 'Com',
- 'files': ['file2', 'file3'],
- 'number': None,
- 'properties': [],
- 'revision': 'rev3',
- 'revlink': '',
- 'who': 'nob'
- }
- ],
- }
- self.assertEqual(EXPECTED, r)
-
-# vim: set ts=4 sts=4 sw=4 et:
« no previous file with comments | « third_party/buildbot_7_12/buildbot/test/test_slaves.py ('k') | third_party/buildbot_7_12/buildbot/test/test_status.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698