/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 breezy/tests/test_https_ca_bundle.py

  • Committer: Jelmer Vernooij
  • Date: 2018-01-14 05:14:06 UTC
  • mfrom: (6844 trunk)
  • mto: This revision was merged to the branch mainline in revision 6845.
  • Revision ID: jelmer@jelmer.uk-20180114051406-eimpackj3a23cgvp
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
"""Testing of bzrlib.transport.http.ca_bundle module"""
 
17
"""Testing of breezy.transport.http.ca_bundle module"""
18
18
 
19
19
import os
20
20
import sys
21
21
 
22
 
from bzrlib.tests import (
 
22
from . import (
23
23
    TestCaseInTempDir,
24
24
    TestSkipped,
25
25
    )
26
 
from bzrlib.transport.http import ca_bundle
 
26
from ..transport.http import ca_bundle
27
27
 
28
28
 
29
29
class TestGetCAPath(TestCaseInTempDir):
35
35
 
36
36
    def _make_file(self, in_dir='.'):
37
37
        fname = os.path.join(in_dir, 'curl-ca-bundle.crt')
38
 
        f = file(fname,'w')
 
38
        f = file(fname, 'w')
39
39
        f.write('spam')
40
40
        f.close()
41
41
 
51
51
        if sys.platform != 'win32':
52
52
            raise TestSkipped('Searching in PATH implemented only for win32')
53
53
        os.mkdir('foo')
54
 
        in_dir = os.path.join(os.getcwd(), 'foo')
 
54
        in_dir = os.path.join(self.test_dir, 'foo')
55
55
        self._make_file(in_dir=in_dir)
56
56
        self.overrideEnv('PATH', in_dir)
57
57
        shouldbe = os.path.join(in_dir, 'curl-ca-bundle.crt')