Rev 440: Add two very trivial blackbox tests. in sftp://people.samba.org/~/bzr/bzr-svn/0.3/
Jelmer Vernooij
jelmer at samba.org
Sun Mar 25 16:15:27 BST 2007
At sftp://people.samba.org/~/bzr/bzr-svn/0.3/
------------------------------------------------------------
revno: 440
revision-id: jelmer at samba.org-20070325151508-eliztm1ms969fjk8
parent: jelmer at samba.org-20070325144144-axorlmksch0g02ps
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.3
timestamp: Sun 2007-03-25 17:15:08 +0200
message:
Add two very trivial blackbox tests.
added:
tests/test_blackbox.py test_blackbox.py-20070325150839-d10llf8arptpcfl6-1
modified:
tests/__init__.py __init__.py-20060508151940-e9f4d914801a2535
=== added file 'tests/test_blackbox.py'
--- a/tests/test_blackbox.py 1970-01-01 00:00:00 +0000
+++ b/tests/test_blackbox.py 2007-03-25 15:15:08 +0000
@@ -0,0 +1,27 @@
+# Copyright (C) 2006-2007 Jelmer Vernooij <jelmer at samba.org>
+
+# This program 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; either version 2 of the License, or
+# (at your option) any later version.
+
+# 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+from bzrlib.tests.blackbox import ExternalBase
+from tests import TestCaseWithSubversionRepository
+
+class TestBranch(ExternalBase,TestCaseWithSubversionRepository):
+ def test_branch_empty(self):
+ repos_url = self.make_client('d', 'de')
+ self.runbzr(['branch', repos_url, 'dc'])
+
+ def test_log_empty(self):
+ repos_url = self.make_client('d', 'de')
+ self.assertEquals('', self.runbzr(['log', repos_url])[1])
=== modified file 'tests/__init__.py'
--- a/tests/__init__.py 2007-03-25 14:41:44 +0000
+++ b/tests/__init__.py 2007-03-25 15:15:08 +0000
@@ -228,6 +228,7 @@
suite = TestSuite()
testmod_names = [
+ 'test_blackbox',
'test_branch',
'test_branchprops',
'test_checkout',
More information about the bazaar-commits
mailing list