~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test__walkdirs_win32.py

  • Committer: Patch Queue Manager
  • Date: 2012-03-29 12:27:52 UTC
  • mfrom: (6437.23.29 2.5_2.4_integration)
  • Revision ID: pqm@pqm.ubuntu.com-20120329122752-d05to7wdet9w3886
(gz) Merge 2.4 for feature flag conflict resolution and _Win32Stat fix
 (Martin Packman)

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)