~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_rules.py

  • Committer: Andrew Bennetts
  • Date: 2011-03-15 07:54:39 UTC
  • mfrom: (0.38.5 trunk)
  • mto: This revision was merged to the branch mainline in revision 5726.
  • Revision ID: andrew.bennetts@canonical.com-20110315075439-nzm293joz143cx0k
Merge bzr-changelog-merge plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2008 Canonical Ltd
 
1
# Copyright (C) 2008-2011 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
16
16
 
17
17
"""Tests for finding, parsing and searching rule-based preferences."""
18
18
 
19
 
import os
20
19
import sys
21
20
 
22
21
from bzrlib import (
23
 
    config,
24
22
    errors,
25
23
    rules,
26
24
    tests,
27
25
    )
28
 
from bzrlib.util.configobj import configobj
29
26
 
30
27
 
31
28
class TestIniBasedRulesSearcher(tests.TestCase):
118
115
 
119
116
    def setUp(self):
120
117
        super(TestRulesPath, self).setUp()
121
 
        os.environ['HOME'] = '/home/bogus'
 
118
        self.overrideEnv('HOME', '/home/bogus')
122
119
        if sys.platform == 'win32':
123
 
            os.environ['BZR_HOME'] = \
124
 
                r'C:\Documents and Settings\bogus\Application Data'
 
120
            self.overrideEnv(
 
121
                'BZR_HOME', r'C:\Documents and Settings\bogus\Application Data')
125
122
            self.bzr_home = \
126
123
                'C:/Documents and Settings/bogus/Application Data/bazaar/2.0'
127
124
        else: