~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bzrdir.py

  • Committer: Alexander Belchenko
  • Date: 2007-11-26 08:54:41 UTC
  • mto: This revision was merged to the branch mainline in revision 3032.
  • Revision ID: bialix@ukr.net-20071126085441-lx9pwr0gcahikyp4
Martin's review.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    repository,
31
31
    symbol_versioning,
32
32
    urlutils,
 
33
    win32utils,
33
34
    workingtree,
34
35
    )
35
36
import bzrlib.branch
43
44
from bzrlib.tests import (
44
45
    TestCase,
45
46
    TestCaseWithTransport,
 
47
    TestSkipped,
46
48
    test_sftp_transport
47
49
    )
48
50
from bzrlib.tests.HttpServer import HttpServer
886
888
        return [i.strip() for i in out]
887
889
 
888
890
    def test_dot_bzr_hidden(self):
 
891
        if sys.platform == 'win32' and not win32utils.has_win32file:
 
892
            raise TestSkipped('unable to make file hidden without pywin32 library')
889
893
        b = bzrdir.BzrDir.create('.')
890
894
        self.build_tree('a')
891
895
        self.assertEquals(['a'], self.get_ls())
892
896
 
893
897
    def test_dot_bzr_hidden_with_url(self):
 
898
        if sys.platform == 'win32' and not win32utils.has_win32file:
 
899
            raise TestSkipped('unable to make file hidden without pywin32 library')
894
900
        b = bzrdir.BzrDir.create(urlutils.local_path_to_url('.'))
895
901
        self.build_tree('a')
896
902
        self.assertEquals(['a'], self.get_ls())