~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Jamie Wilkinson
  • Date: 2005-12-30 03:25:20 UTC
  • mto: (1185.50.34 bzr-jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1536.
  • Revision ID: jaq@spacepants.org-20051230032520-d205be03bad624bd
add test for directory export

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
        for m in ball.namelist():
58
58
            #print m
59
59
            self.failIf(os.path.basename(m) == '.bzrignore', 'zip export contains .bzrignore')
 
60
 
 
61
    def test_dir_export(self):
 
62
 
 
63
        os.mkdir('dir')
 
64
        os.chdir('dir')
 
65
 
 
66
        self.runbzr('init')
 
67
        open('a', 'wb').write('foo\n')
 
68
        self.runbzr('add a')
 
69
        self.runbzr('ignore something')
 
70
        self.runbzr('commit -m 1')
 
71
        self.runbzr('export direxport')
 
72
 
 
73
        files = sorted(os.listdir('direxport'))
 
74
        self.assertEqual(['a'], files, 'dir contains .bzrignore')