~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-02-07 04:14:29 UTC
  • mfrom: (5535.4.26 fetch-all-tags-309682)
  • mto: This revision was merged to the branch mainline in revision 5648.
  • Revision ID: andrew.bennetts@canonical.com-20110207041429-3kc1blj34rvvxod9
Merge fetch-all-tags-309682.

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: