Rev 6500: Split eager test. in file:///home/vila/src/bzr/bugs/832042-shared-stores/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Tue Jul 31 09:17:35 UTC 2012
At file:///home/vila/src/bzr/bugs/832042-shared-stores/
------------------------------------------------------------
revno: 6500
revision-id: v.ladeuil+lp at free.fr-20120731091734-700oburs0806cont
parent: pqm at pqm.ubuntu.com-20120313093600-lb7qlh29e7d7kr68
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 832042-shared-stores
timestamp: Tue 2012-07-31 11:17:34 +0200
message:
Split eager test.
-------------- next part --------------
=== modified file 'bzrlib/tests/test_debug.py'
--- a/bzrlib/tests/test_debug.py 2011-11-16 17:19:13 +0000
+++ b/bzrlib/tests/test_debug.py 2012-07-31 09:17:34 +0000
@@ -26,11 +26,14 @@
class TestDebugFlags(tests.TestCaseInTempDir):
- def test_set_debug_flags_from_config(self):
- # test both combinations because configobject automatically splits up
- # comma-separated lists
+ def test_set_no_debug_flags_from_config(self):
+ self.assertDebugFlags([], '')
+
+ def test_set_single_debug_flags_from_config(self):
+ self.assertDebugFlags(['hpss'], 'debug_flags = hpss\n')
+
+ def test_set_multiple_debug_flags_from_config(self):
self.assertDebugFlags(['hpss', 'error'], 'debug_flags = hpss, error\n')
- self.assertDebugFlags(['hpss'], 'debug_flags = hpss\n')
def assertDebugFlags(self, expected_flags, conf_bytes):
conf = config.GlobalStack()
More information about the bazaar-commits
mailing list