~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test__walkdirs_win32.py

  • Committer: Jelmer Vernooij
  • Date: 2012-04-02 01:44:26 UTC
  • mfrom: (6518 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6519.
  • Revision ID: jelmer@samba.org-20120402014426-0o5qtysohyl006b2
merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
        self.assertEqual(errno.ENOENT, e.errno)
97
97
        self.assertEqual(3, e.winerror)
98
98
        self.assertEqual((3, u'no_such_dir/*'), e.args)
 
99
 
 
100
 
 
101
class Test_Win32Stat(tests.TestCaseInTempDir):
 
102
 
 
103
    _test_needs_features = [win32_readdir_feature]
 
104
 
 
105
    def setUp(self):
 
106
        super(Test_Win32Stat, self).setUp()
 
107
        from bzrlib._walkdirs_win32 import lstat
 
108
        self.win32_lstat = lstat
 
109
 
 
110
    def test_zero_members_present(self):
 
111
        self.build_tree(['foo'])
 
112
        st = self.win32_lstat('foo')
 
113
        # we only want to ensure that some members are present
 
114
        self.assertEqual(0, st.st_dev)
 
115
        self.assertEqual(0, st.st_ino)
 
116
        self.assertEqual(0, st.st_uid)
 
117
        self.assertEqual(0, st.st_gid)