/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_rules.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-04-19 02:03:54 UTC
  • mfrom: (5757.8.11 knitpackrepo-7)
  • Revision ID: pqm@pqm.ubuntu.com-20110419020354-qu7nt76r2uj4pb5c
(jelmer) Move _KeyRefs from bzrlib.knit to bzrlib.versionedfile. (Jelmer
 Vernooij)

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: