~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

Move all features to bzrlib.tests.features in 2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
390
390
        har_st = os.stat('t/har')
391
391
        self.assertEquals(315532800, har_st.st_mtime)
392
392
 
 
393
    def test_dir_export_partial_tree_per_file_timestamps(self):
 
394
        tree = self.example_branch()
 
395
        self.build_tree(['branch/subdir/', 'branch/subdir/foo.txt'])
 
396
        tree.smart_add(['branch'])
 
397
        # Earliest allowable date on FAT32 filesystems is 1980-01-01
 
398
        tree.commit('setup', timestamp=315532800)
 
399
        self.run_bzr('export --per-file-timestamps tpart branch/subdir')
 
400
        foo_st = os.stat('tpart/foo.txt')
 
401
        self.assertEquals(315532800, foo_st.st_mtime)
 
402
 
393
403
    def test_export_directory(self):
394
404
        """Test --directory option"""
395
405
        self.example_branch()