aboutsummaryrefslogtreecommitdiffstats
path: root/lib/python2.7/site-packages/buildbot_slave-0.8.8-py2.7.egg/buildslave/test/unit/test_commands_bk.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python2.7/site-packages/buildbot_slave-0.8.8-py2.7.egg/buildslave/test/unit/test_commands_bk.py')
-rw-r--r--lib/python2.7/site-packages/buildbot_slave-0.8.8-py2.7.egg/buildslave/test/unit/test_commands_bk.py68
1 files changed, 0 insertions, 68 deletions
diff --git a/lib/python2.7/site-packages/buildbot_slave-0.8.8-py2.7.egg/buildslave/test/unit/test_commands_bk.py b/lib/python2.7/site-packages/buildbot_slave-0.8.8-py2.7.egg/buildslave/test/unit/test_commands_bk.py
deleted file mode 100644
index da3cc352..00000000
--- a/lib/python2.7/site-packages/buildbot_slave-0.8.8-py2.7.egg/buildslave/test/unit/test_commands_bk.py
+++ /dev/null
@@ -1,68 +0,0 @@
-# This file is part of Buildbot. Buildbot is free software: you can
-# redistribute it and/or modify it under the terms of the GNU General Public
-# License as published by the Free Software Foundation, version 2.
-#
-# This program is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
-# details.
-#
-# You should have received a copy of the GNU General Public License along with
-# this program; if not, write to the Free Software Foundation, Inc., 51
-# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# Copyright Buildbot Team Members
-
-from twisted.trial import unittest
-
-from buildslave.test.fake.runprocess import Expect
-from buildslave.test.util.sourcecommand import SourceCommandTestMixin
-from buildslave.commands import bk
-
-class TestBK(SourceCommandTestMixin, unittest.TestCase):
-
- def setUp(self):
- self.setUpCommand()
-
- def tearDown(self):
- self.tearDownCommand()
-
- def test_simple(self):
- self.patch_getCommand('bk', 'path/to/bk')
- self.clean_environ()
- self.make_command(bk.BK, dict(
- workdir='workdir',
- mode='copy',
- revision='1.114',
- bkurl='http://bkdemo.bkbits.net/bk_demo1',
- ))
-
- exp_environ = dict(PWD='.', LC_MESSAGES='C')
- expects = [
- Expect([ 'clobber', 'workdir' ],
- self.basedir)
- + 0,
- Expect([ 'clobber', 'source' ],
- self.basedir)
- + 0,
- Expect(['path/to/bk', 'clone', '-r1.114',
- 'http://bkdemo.bkbits.net/bk_demo1', 'source'],
- self.basedir,
- sendRC=False, timeout=120, usePTY=False)
- + 0,
- Expect(['path/to/bk', 'changes', '-r+', '-d:REV:'],
- self.basedir_source,
- sendRC=False, usePTY=False, timeout=120, sendStderr=False,
- sendStdout=False, keepStdout=True, environ=exp_environ)
- + { 'stdout' : '1.114\n' } # TODO: is this what BK outputs?
- + 0,
- Expect([ 'copy', 'source', 'workdir'],
- self.basedir)
- + 0,
- ]
- self.patch_runprocess(*expects)
-
- d = self.run_command()
- # TODO: why the extra quotes?
- d.addCallback(self.check_sourcedata, '"http://bkdemo.bkbits.net/bk_demo1\n"')
- return d