/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2010-04-30 11:35:43 UTC
  • mfrom: (5195 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5197.
  • Revision ID: jelmer@samba.org-20100430113543-tiqqhmqa3d8no4iu
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
        self.assertEqual(['test/' + fname.encode('utf8')],
86
86
                         sorted(ball.getnames()))
87
87
 
 
88
    def test_tar_export_unicode_basedir(self):
 
89
        """Test for bug #413406"""
 
90
        basedir = u'\N{euro sign}'
 
91
        os.mkdir(basedir)
 
92
        os.chdir(basedir)
 
93
        self.run_bzr(['init', 'branch'])
 
94
        os.chdir('branch')
 
95
        self.run_bzr(['export', '--format', 'tgz', u'test.tar.gz'])
 
96
 
88
97
    def test_zip_export(self):
89
98
        tree = self.make_branch_and_tree('zip')
90
99
        self.build_tree(['zip/a'])
298
307
        tree = self.example_branch()
299
308
        self.build_tree_contents([('branch/har', 'foo')])
300
309
        tree.add('har')
301
 
        tree.commit('setup', timestamp=42)
 
310
        # Earliest allowable date on FAT32 filesystems is 1980-01-01
 
311
        tree.commit('setup', timestamp=315532800)
302
312
        self.run_bzr('export --per-file-timestamps t branch')
303
313
        har_st = os.stat('t/har')
304
 
        self.assertEquals(42, har_st.st_mtime)
 
314
        self.assertEquals(315532800, har_st.st_mtime)
305
315