~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_export.py

Merge pt1 hooks branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
148
148
        self.assertEqual(['test/a', 'test/b/', 'test/b/c', 'test/d/'], names)
149
149
 
150
150
        file_attr = stat.S_IFREG | export.zip_exporter.FILE_PERMISSIONS
151
 
        dir_attr = stat.S_IFDIR | export.zip_exporter.ZIP_DIRECTORY_BIT
 
151
        dir_attr = (stat.S_IFDIR | export.zip_exporter.ZIP_DIRECTORY_BIT |
 
152
                    export.zip_exporter.DIR_PERMISSIONS)
152
153
 
153
154
        a_info = zfile.getinfo(names[0])
154
155
        self.assertEqual(file_attr, a_info.external_attr)