Rev 6157: Add a smoke test as suggested in review. in file:///home/vila/src/bzr/experimental/migrate-config-options/

Vincent Ladeuil v.ladeuil+lp at free.fr
Thu Sep 22 12:55:04 UTC 2011


At file:///home/vila/src/bzr/experimental/migrate-config-options/

------------------------------------------------------------
revno: 6157
revision-id: v.ladeuil+lp at free.fr-20110922125504-9ui667buwa180bf3
parent: v.ladeuil+lp at free.fr-20110922121312-bm2uww3uaw2dhmfe
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: migrate-config-options
timestamp: Thu 2011-09-22 14:55:04 +0200
message:
  Add a smoke test as suggested in review.
-------------- next part --------------
=== modified file 'bzrlib/tests/per_branch/test_branch.py'
--- a/bzrlib/tests/per_branch/test_branch.py	2011-09-12 11:43:03 +0000
+++ b/bzrlib/tests/per_branch/test_branch.py	2011-09-22 12:55:04 +0000
@@ -537,6 +537,12 @@
             looked_up_format = registry.get(network_name)
             self.assertEqual(format.__class__, looked_up_format.__class__)
 
+    def get_get_config_calls(self):
+        # Smoke test that all branch succeed getting a config
+        br = self.make_branch('.')
+        br.get_config()
+        br.get_config_stack()
+
 
 class ChrootedTests(per_branch.TestCaseWithBranch):
     """A support class that provides readonly urls outside the local namespace.
@@ -1070,7 +1076,7 @@
 
 class TestBranchControlComponent(per_branch.TestCaseWithBranch):
     """Branch implementations adequately implement ControlComponent."""
-    
+
     def test_urls(self):
         br = self.make_branch('branch')
         self.assertIsInstance(br.user_url, str)



More information about the bazaar-commits mailing list