~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_debug.py

  • Committer: Ross Lagerwall
  • Date: 2012-08-07 06:32:51 UTC
  • mto: (6437.63.5 2.5)
  • mto: This revision was merged to the branch mainline in revision 6558.
  • Revision ID: rosslagerwall@gmail.com-20120807063251-x9p03ghg2ws8oqjc
Add bzrlib/locale to .bzrignore

bzrlib/locale is generated with ./setup.py build_mo which is in turn called
by ./setup.py build

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
class TestDebugFlags(tests.TestCaseInTempDir):
28
28
 
29
 
    def test_set_no_debug_flags_from_config(self):
30
 
        self.assertDebugFlags([], '')
31
 
 
32
 
    def test_set_single_debug_flags_from_config(self):
 
29
    def test_set_debug_flags_from_config(self):
 
30
        # test both combinations because configobject automatically splits up
 
31
        # comma-separated lists
 
32
        self.assertDebugFlags(['hpss', 'error'], 'debug_flags = hpss, error\n')
33
33
        self.assertDebugFlags(['hpss'], 'debug_flags = hpss\n')
34
34
 
35
 
    def test_set_multiple_debug_flags_from_config(self):
36
 
        self.assertDebugFlags(['hpss', 'error'], 'debug_flags = hpss, error\n')
37
 
 
38
35
    def assertDebugFlags(self, expected_flags, conf_bytes):
39
36
        conf = config.GlobalStack()
40
37
        conf.store._load_from_string('[DEFAULT]\n' + conf_bytes)