Rev 1725: Rename TestCaseWithSubversionRepository to SubversionTestCase. in file:///data/jelmer/bzr-svn/trunk/
Jelmer Vernooij
jelmer at samba.org
Sun Aug 31 00:45:16 BST 2008
At file:///data/jelmer/bzr-svn/trunk/
------------------------------------------------------------
revno: 1725
revision-id: jelmer at samba.org-20080830234511-6pkd922cykoguu7f
parent: jelmer at samba.org-20080830221426-v1enpafcroqjw6mv
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Sun 2008-08-31 01:45:11 +0200
message:
Rename TestCaseWithSubversionRepository to SubversionTestCase.
modified:
tests/__init__.py __init__.py-20060508151940-e9f4d914801a2535
tests/test_blackbox.py test_blackbox.py-20070325150839-d10llf8arptpcfl6-1
tests/test_branch.py test_branch.py-20060508162215-74ffeb5d608f8e20
tests/test_branchprops.py test_branchprops.py-20061223210444-04xf5224zcg69m3w-1
tests/test_checkout.py test_checkout.py-20070101154110-eevkc29qj0q7udz5-1
tests/test_client.py test_client.py-20080603021344-lmgexez0yoyp9b1s-1
tests/test_commit.py test_commit.py-20060624213521-l5kcufywkh9mnilk-1
tests/test_config.py test_config.py-20070624193244-itvnst60evjidr4z-1
tests/test_convert.py test_convert.py-20060705203611-b1l0bapeku6foco0-1
tests/test_fetch.py test_fetch.py-20070624210302-luvgwjmlfysk5qeq-1
tests/test_fileids.py test_fileids.py-20060622131341-19gyrlgqy8yl2od5-1
tests/test_logwalker.py test_logwalker.py-20060622141944-pkocc3rj8g62ukbi-1
tests/test_push.py test_push.py-20070201165715-g2ievcdfqi33wqsy-1
tests/test_ra.py test_ra.py-20080313141743-uzsm7ejitrlqone5-1
tests/test_radir.py test_radir.py-20061231173434-31utf9o4byu7wktm-1
tests/test_repository.py test_repos.py-20060508151940-ddc49a59257ca712
tests/test_revspec.py test_revspec.py-20071111183646-0wohlrzaevdsr9ia-1
tests/test_transport.py test_transport.py-20060621232111-xh7xvoblzsrgj79t-1
tests/test_tree.py test_tree.py-20070103204350-pr8nupes7e5sd2wr-1
tests/test_upgrade.py test_upgrade.py-20070106170128-64zt3eqggg4tng1c-1
tests/test_workingtree.py test_workingtree.py-20060622191524-0di7bc3q1ckdbybb-1
=== modified file 'tests/__init__.py'
--- a/tests/__init__.py 2008-08-30 03:08:49 +0000
+++ b/tests/__init__.py 2008-08-30 23:45:11 +0000
@@ -123,12 +123,12 @@
self.editor.close()
-class TestCaseWithSubversionRepository(TestCaseInTempDir):
+class SubversionTestCase(TestCaseInTempDir):
"""A test case that provides the ability to build Subversion
repositories."""
def setUp(self):
- super(TestCaseWithSubversionRepository, self).setUp()
+ super(SubversionTestCase, self).setUp()
self.client_ctx = Client()
self.client_ctx.auth = Auth([ra.get_simple_provider(),
ra.get_username_provider(),
=== modified file 'tests/test_blackbox.py'
--- a/tests/test_blackbox.py 2008-08-29 16:19:47 +0000
+++ b/tests/test_blackbox.py 2008-08-30 23:45:11 +0000
@@ -22,11 +22,11 @@
from bzrlib.plugins.svn.mapping3 import BzrSvnMappingv3FileProps
from bzrlib.plugins.svn.mapping3.scheme import NoBranchingScheme
-from bzrlib.plugins.svn.tests import TestCaseWithSubversionRepository
+from bzrlib.plugins.svn.tests import SubversionTestCase
import os, sys
-class TestBranch(ExternalBase, TestCaseWithSubversionRepository):
+class TestBranch(ExternalBase, SubversionTestCase):
def test_branch_empty(self):
repos_url = self.make_repository('d')
self.run_bzr("branch %s dc" % repos_url)
=== modified file 'tests/test_branch.py'
--- a/tests/test_branch.py 2008-08-30 03:08:49 +0000
+++ b/tests/test_branch.py 2008-08-30 23:45:11 +0000
@@ -33,9 +33,9 @@
from bzrlib.plugins.svn.mapping import SVN_PROP_BZR_REVISION_ID
from bzrlib.plugins.svn.mapping3 import BzrSvnMappingv3FileProps
from bzrlib.plugins.svn.mapping3.scheme import TrunkBranchingScheme
-from bzrlib.plugins.svn.tests import TestCaseWithSubversionRepository
+from bzrlib.plugins.svn.tests import SubversionTestCase
-class WorkingSubversionBranch(TestCaseWithSubversionRepository):
+class WorkingSubversionBranch(SubversionTestCase):
def test_last_rev_rev_hist(self):
repos_url = self.make_repository("a")
branch = Branch.open(repos_url)
=== modified file 'tests/test_branchprops.py'
--- a/tests/test_branchprops.py 2008-08-23 15:14:26 +0000
+++ b/tests/test_branchprops.py 2008-08-30 23:45:11 +0000
@@ -16,12 +16,12 @@
"""Branch property access tests."""
-from bzrlib.plugins.svn.tests import TestCaseWithSubversionRepository
+from bzrlib.plugins.svn.tests import SubversionTestCase
from bzrlib.plugins.svn.branchprops import PathPropertyProvider
from bzrlib.plugins.svn.logwalker import LogWalker, CachingLogWalker
from bzrlib.plugins.svn.transport import SvnRaTransport
-class TestBranchProps(TestCaseWithSubversionRepository):
+class TestBranchProps(SubversionTestCase):
def setUp(self):
super(TestBranchProps, self).setUp()
=== modified file 'tests/test_checkout.py'
--- a/tests/test_checkout.py 2008-08-25 01:58:11 +0000
+++ b/tests/test_checkout.py 2008-08-30 23:45:11 +0000
@@ -23,7 +23,7 @@
from bzrlib.plugins.svn.workingtree import SvnWorkingTreeFormat
from bzrlib.plugins.svn.format import SvnWorkingTreeDirFormat
-from bzrlib.plugins.svn.tests import TestCaseWithSubversionRepository
+from bzrlib.plugins.svn.tests import SubversionTestCase
class TestWorkingTreeFormat(TestCase):
def setUp(self):
@@ -54,7 +54,7 @@
self.format.initialize_on_transport, None)
-class TestCheckout(TestCaseWithSubversionRepository):
+class TestCheckout(SubversionTestCase):
def test_not_for_writing(self):
self.make_client("d", "dc")
x = BzrDir.create_branch_convenience("dc/foo")
=== modified file 'tests/test_client.py'
--- a/tests/test_client.py 2008-08-25 01:58:11 +0000
+++ b/tests/test_client.py 2008-08-30 23:45:11 +0000
@@ -16,9 +16,9 @@
"""Subversion client library tests."""
from bzrlib.plugins.svn import client
-from bzrlib.plugins.svn.tests import TestCaseWithSubversionRepository
+from bzrlib.plugins.svn.tests import SubversionTestCase
-class TestClient(TestCaseWithSubversionRepository):
+class TestClient(SubversionTestCase):
def setUp(self):
super(TestClient, self).setUp()
self.repos_url = self.make_client("d", "dc")
=== modified file 'tests/test_commit.py'
--- a/tests/test_commit.py 2008-08-28 14:41:24 +0000
+++ b/tests/test_commit.py 2008-08-30 23:45:11 +0000
@@ -33,9 +33,9 @@
from bzrlib.plugins.svn.errors import RevpropChangeFailed
from bzrlib.plugins.svn.properties import time_to_cstring
from bzrlib.plugins.svn.transport import SvnRaTransport
-from bzrlib.plugins.svn.tests import TestCaseWithSubversionRepository
+from bzrlib.plugins.svn.tests import SubversionTestCase
-class TestNativeCommit(TestCaseWithSubversionRepository):
+class TestNativeCommit(SubversionTestCase):
def test_simple_commit(self):
self.make_client('d', 'dc')
self.build_tree({'dc/foo/bla': "data"})
@@ -309,7 +309,7 @@
self.assertEqual("data", open('pyd/bar').read())
-class TestPush(TestCaseWithSubversionRepository):
+class TestPush(SubversionTestCase):
def setUp(self):
super(TestPush, self).setUp()
self.repos_url = self.make_client('d', 'sc')
@@ -528,7 +528,7 @@
self.assertEquals('D', paths["/adir/foob"][0])
-class TestPushNested(TestCaseWithSubversionRepository):
+class TestPushNested(SubversionTestCase):
def setUp(self):
super(TestPushNested, self).setUp()
self.repos_url = self.make_client('d', 'sc')
@@ -553,7 +553,7 @@
self.assertFalse(os.path.exists("sc/foo/trunk/filel"))
-class HeavyWeightCheckoutTests(TestCaseWithSubversionRepository):
+class HeavyWeightCheckoutTests(SubversionTestCase):
def test_bind(self):
repos_url = self.make_repository("d")
master_branch = Branch.open(repos_url)
@@ -621,7 +621,7 @@
self.client_get_prop(repos_url, "bzr:file-ids", 1))
-class RevpropTests(TestCaseWithSubversionRepository):
+class RevpropTests(SubversionTestCase):
def test_change_revprops(self):
repos_url = self.make_repository("d", allow_revprop_changes=True)
=== modified file 'tests/test_config.py'
--- a/tests/test_config.py 2008-08-23 20:18:49 +0000
+++ b/tests/test_config.py 2008-08-30 23:45:11 +0000
@@ -19,7 +19,7 @@
from bzrlib.branch import Branch
from bzrlib.plugins.svn.config import SvnRepositoryConfig, BranchConfig
from bzrlib.plugins.svn.mapping3.scheme import TrunkBranchingScheme
-from bzrlib.plugins.svn.tests import TestCaseWithSubversionRepository
+from bzrlib.plugins.svn.tests import SubversionTestCase
from bzrlib.tests import TestCaseInTempDir
@@ -99,7 +99,7 @@
self.assertEquals(False, c.get_supports_change_revprop())
-class BranchConfigTests(TestCaseWithSubversionRepository):
+class BranchConfigTests(SubversionTestCase):
def setUp(self):
super(BranchConfigTests, self).setUp()
self.repos_url = self.make_repository("d")
=== modified file 'tests/test_convert.py'
--- a/tests/test_convert.py 2008-08-30 03:08:49 +0000
+++ b/tests/test_convert.py 2008-08-30 23:45:11 +0000
@@ -30,7 +30,7 @@
from bzrlib.plugins.svn.format import get_rich_root_format
from bzrlib.plugins.svn.mapping3 import set_branching_scheme
from bzrlib.plugins.svn.mapping3.scheme import TrunkBranchingScheme, NoBranchingScheme
-from bzrlib.plugins.svn.tests import TestCaseWithSubversionRepository
+from bzrlib.plugins.svn.tests import SubversionTestCase
class TestLoadDumpfile(TestCaseInTempDir):
def test_loaddumpfile(self):
@@ -61,7 +61,7 @@
self.assertRaises(NotDumpFile, load_dumpfile, dumpfile, "d")
-class TestConversion(TestCaseWithSubversionRepository):
+class TestConversion(SubversionTestCase):
def setUp(self):
super(TestConversion, self).setUp()
self.repos_url = self.make_repository('d')
@@ -290,7 +290,7 @@
self.assertRaises(NotBranchError, Repository.open, "e")
-class TestConversionFromDumpfile(TestCaseWithSubversionRepository):
+class TestConversionFromDumpfile(SubversionTestCase):
def test_dumpfile_open_empty(self):
dumpfile = os.path.join(self.test_dir, "dumpfile")
open(dumpfile, 'w').write(
=== modified file 'tests/test_fetch.py'
--- a/tests/test_fetch.py 2008-08-25 01:58:11 +0000
+++ b/tests/test_fetch.py 2008-08-30 23:45:11 +0000
@@ -31,12 +31,12 @@
from bzrlib.plugins.svn.errors import InvalidFileName
from bzrlib.plugins.svn.mapping3 import set_branching_scheme
from bzrlib.plugins.svn.mapping3.scheme import TrunkBranchingScheme
-from bzrlib.plugins.svn.tests import TestCaseWithSubversionRepository
+from bzrlib.plugins.svn.tests import SubversionTestCase
from bzrlib.plugins.svn.transport import SvnRaTransport
import os, sys
-class TestFetchWorks(TestCaseWithSubversionRepository):
+class TestFetchWorks(SubversionTestCase):
def test_fetch_fileid_renames(self):
repos_url = self.make_repository('d')
=== modified file 'tests/test_fileids.py'
--- a/tests/test_fileids.py 2008-08-29 16:00:52 +0000
+++ b/tests/test_fileids.py 2008-08-30 23:45:11 +0000
@@ -24,7 +24,7 @@
from bzrlib.plugins.svn.fileids import simple_apply_changes
from bzrlib.plugins.svn.mapping3 import BzrSvnMappingv3FileProps, set_branching_scheme
from bzrlib.plugins.svn.mapping3.scheme import TrunkBranchingScheme, NoBranchingScheme
-from bzrlib.plugins.svn.tests import TestCaseWithSubversionRepository
+from bzrlib.plugins.svn.tests import SubversionTestCase
class MockRepo(object):
def __init__(self, mapping, uuid="uuid"):
@@ -35,7 +35,7 @@
return ret[1], ret[2], ret[3]
-class TestComplexFileids(TestCaseWithSubversionRepository):
+class TestComplexFileids(SubversionTestCase):
# branchtagcopy.dump
# changeaftercp.dump
# combinedbranch.dump
@@ -266,7 +266,7 @@
self.assertEqual((1, ""), map["foo"][1])
-class GetMapTests(TestCaseWithSubversionRepository):
+class GetMapTests(SubversionTestCase):
def setUp(self):
super(GetMapTests, self).setUp()
self.repos_url = self.make_repository("d")
=== modified file 'tests/test_logwalker.py'
--- a/tests/test_logwalker.py 2008-08-25 01:58:11 +0000
+++ b/tests/test_logwalker.py 2008-08-30 23:45:11 +0000
@@ -23,10 +23,10 @@
from bzrlib import debug
from bzrlib.plugins.svn import logwalker
-from bzrlib.plugins.svn.tests import TestCaseWithSubversionRepository
+from bzrlib.plugins.svn.tests import SubversionTestCase
from bzrlib.plugins.svn.transport import SvnRaTransport
-class TestLogWalker(TestCaseWithSubversionRepository):
+class TestLogWalker(SubversionTestCase):
def setUp(self):
super(TestLogWalker, self).setUp()
debug.debug_flags.add("transport")
=== modified file 'tests/test_push.py'
--- a/tests/test_push.py 2008-08-28 14:41:24 +0000
+++ b/tests/test_push.py 2008-08-30 23:45:11 +0000
@@ -31,9 +31,9 @@
from bzrlib.plugins.svn.errors import MissingPrefix
from bzrlib.plugins.svn.commit import push, dpush
from bzrlib.plugins.svn.mapping import SVN_PROP_BZR_REVISION_ID
-from bzrlib.plugins.svn.tests import TestCaseWithSubversionRepository
+from bzrlib.plugins.svn.tests import SubversionTestCase
-class TestDPush(TestCaseWithSubversionRepository):
+class TestDPush(SubversionTestCase):
def setUp(self):
super(TestDPush, self).setUp()
self.repos_url = self.make_repository('d')
@@ -114,7 +114,7 @@
self.bzrdir.open_branch())
-class TestPush(TestCaseWithSubversionRepository):
+class TestPush(SubversionTestCase):
def setUp(self):
super(TestPush, self).setUp()
self.repos_url = self.make_repository('d')
@@ -446,7 +446,7 @@
self.assertEquals("/branches/mybranch",
self.client_log("%s/trunk" % self.repos_url, 0, 5)[5][0]['/trunk'][1])
-class PushNewBranchTests(TestCaseWithSubversionRepository):
+class PushNewBranchTests(SubversionTestCase):
def test_single_revision(self):
repos_url = self.make_repository("a")
bzrwt = BzrDir.create_standalone_workingtree("c",
@@ -990,7 +990,7 @@
c.get_latest_revnum()))
-class TestPushTwice(TestCaseWithSubversionRepository):
+class TestPushTwice(SubversionTestCase):
def test_push_twice(self):
# bug 208566
repos_url = self.make_repository('d')
=== modified file 'tests/test_ra.py'
--- a/tests/test_ra.py 2008-08-25 01:58:11 +0000
+++ b/tests/test_ra.py 2008-08-30 23:45:11 +0000
@@ -17,14 +17,14 @@
from bzrlib.tests import TestCase, TestSkipped
from bzrlib.plugins.svn import core, ra
-from bzrlib.plugins.svn.tests import TestCaseWithSubversionRepository
+from bzrlib.plugins.svn.tests import SubversionTestCase
class VersionTest(TestCase):
def test_version_length(self):
self.assertEquals(4, len(ra.version()))
-class TestRemoteAccess(TestCaseWithSubversionRepository):
+class TestRemoteAccess(SubversionTestCase):
def setUp(self):
super(TestRemoteAccess, self).setUp()
self.repos_url = self.make_repository("d")
=== modified file 'tests/test_radir.py'
--- a/tests/test_radir.py 2008-08-25 01:58:11 +0000
+++ b/tests/test_radir.py 2008-08-30 23:45:11 +0000
@@ -24,10 +24,10 @@
from bzrlib.plugins.svn import core
from bzrlib.plugins.svn.format import SvnRemoteFormat
-from bzrlib.plugins.svn.tests import TestCaseWithSubversionRepository
+from bzrlib.plugins.svn.tests import SubversionTestCase
from bzrlib.plugins.svn.transport import SvnRaTransport
-class TestRemoteAccess(TestCaseWithSubversionRepository):
+class TestRemoteAccess(SubversionTestCase):
def test_clone(self):
repos_url = self.make_client("d", "dc")
=== modified file 'tests/test_repository.py'
--- a/tests/test_repository.py 2008-08-30 03:08:49 +0000
+++ b/tests/test_repository.py 2008-08-30 23:45:11 +0000
@@ -37,11 +37,11 @@
set_property_scheme, BzrSvnMappingv3)
from bzrlib.plugins.svn.mapping3.scheme import (TrunkBranchingScheme, NoBranchingScheme,
ListBranchingScheme, SingleBranchingScheme)
-from bzrlib.plugins.svn.tests import TestCaseWithSubversionRepository
+from bzrlib.plugins.svn.tests import SubversionTestCase
from bzrlib.plugins.svn.repository import SvnRepositoryFormat
-class TestSubversionRepositoryWorks(TestCaseWithSubversionRepository):
+class TestSubversionRepositoryWorks(SubversionTestCase):
def test_format(self):
""" Test repository format is correct """
bzrdir = self.make_local_bzrdir('a', 'ac')
@@ -1275,7 +1275,7 @@
('revisions', None, [revid])], ch)
-class TestSvnRevisionTree(TestCaseWithSubversionRepository):
+class TestSvnRevisionTree(SubversionTestCase):
def setUp(self):
super(TestSvnRevisionTree, self).setUp()
repos_url = self.make_client('d', 'dc')
=== modified file 'tests/test_revspec.py'
--- a/tests/test_revspec.py 2008-06-23 02:23:10 +0000
+++ b/tests/test_revspec.py 2008-08-30 23:45:11 +0000
@@ -23,7 +23,7 @@
from bzrlib.revisionspec import RevisionSpec, RevisionInfo
from bzrlib.tests import TestCase
-from bzrlib.plugins.svn.tests import TestCaseWithSubversionRepository
+from bzrlib.plugins.svn.tests import SubversionTestCase
class TestRevSpec(TestCase):
@@ -37,7 +37,7 @@
self.assertIs(None, RevisionSpec.from_string("svn:foo").get_branch())
-class TestRevSpecsBySubversion(TestCaseWithSubversionRepository):
+class TestRevSpecsBySubversion(SubversionTestCase):
def test_by_single_revno(self):
revspec = RevisionSpec.from_string("svn:2")
repos_url = self.make_repository("a")
=== modified file 'tests/test_transport.py'
--- a/tests/test_transport.py 2008-08-23 15:14:26 +0000
+++ b/tests/test_transport.py 2008-08-30 23:45:11 +0000
@@ -20,12 +20,12 @@
from bzrlib import urlutils
from bzrlib.plugins.svn import core, ra
-from bzrlib.plugins.svn.tests import TestCaseWithSubversionRepository
+from bzrlib.plugins.svn.tests import SubversionTestCase
from bzrlib.plugins.svn.transport import SvnRaTransport, bzr_to_svn_url, _url_unescape_uri
from unittest import TestCase
-class SvnRaTest(TestCaseWithSubversionRepository):
+class SvnRaTest(SubversionTestCase):
def test_open_nonexisting(self):
self.assertRaises(InvalidURL, SvnRaTransport,
"svn+nonexisting://foo/bar")
=== modified file 'tests/test_tree.py'
--- a/tests/test_tree.py 2008-08-29 16:19:47 +0000
+++ b/tests/test_tree.py 2008-08-30 23:45:11 +0000
@@ -24,11 +24,11 @@
from bzrlib.plugins.svn import errors
from bzrlib.plugins.svn.core import SubversionException
-from bzrlib.plugins.svn.tests import TestCaseWithSubversionRepository
+from bzrlib.plugins.svn.tests import SubversionTestCase
from bzrlib.plugins.svn.tree import SvnBasisTree, inventory_add_external
-class TestBasisTree(TestCaseWithSubversionRepository):
+class TestBasisTree(SubversionTestCase):
def test_executable(self):
repos_url = self.make_client("d", "dc")
@@ -171,7 +171,7 @@
self.assertFalse(wt.inventory[wt.inventory.path2id("file")].executable)
-class TestInventoryExternals(TestCaseWithSubversionRepository):
+class TestInventoryExternals(SubversionTestCase):
def test_add_nested_norev(self):
"""Add a nested tree with no specific revision referenced."""
repos_url = self.make_client('d', 'dc')
=== modified file 'tests/test_upgrade.py'
--- a/tests/test_upgrade.py 2008-08-23 15:14:26 +0000
+++ b/tests/test_upgrade.py 2008-08-30 23:45:11 +0000
@@ -24,7 +24,7 @@
from bzrlib.plugins.svn.format import get_rich_root_format
from bzrlib.plugins.svn.mapping3 import BzrSvnMappingv3FileProps
from bzrlib.plugins.svn.mapping3.scheme import TrunkBranchingScheme
-from bzrlib.plugins.svn.tests import TestCaseWithSubversionRepository
+from bzrlib.plugins.svn.tests import SubversionTestCase
from bzrlib.plugins.svn.upgrade import (upgrade_repository, upgrade_branch,
upgrade_workingtree, UpgradeChangesContent,
create_upgraded_revid, generate_upgrade_map)
@@ -56,7 +56,7 @@
return check_error
-class UpgradeTests(TestCaseWithSubversionRepository):
+class UpgradeTests(SubversionTestCase):
@skip_no_rebase
def test_no_custom(self):
repos_url = self.make_repository("a")
=== modified file 'tests/test_workingtree.py'
--- a/tests/test_workingtree.py 2008-08-30 21:11:14 +0000
+++ b/tests/test_workingtree.py 2008-08-30 23:45:11 +0000
@@ -27,12 +27,12 @@
from bzrlib.workingtree import WorkingTree
from bzrlib.plugins.svn.transport import svn_config
-from bzrlib.plugins.svn.tests import TestCaseWithSubversionRepository
+from bzrlib.plugins.svn.tests import SubversionTestCase
from bzrlib.plugins.svn.workingtree import generate_ignore_list
import os
-class TestWorkingTree(TestCaseWithSubversionRepository):
+class TestWorkingTree(SubversionTestCase):
def test_add_duplicate(self):
self.make_client('a', 'dc')
self.build_tree({"dc/bl": "data"})
More information about the bazaar-commits
mailing list