~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

Update to bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006 Canonical Ltd
 
1
# Copyright (C) 2005, 2006, 2008 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
18
18
"""Black-box tests for bzr export.
19
19
"""
20
20
 
 
21
from StringIO import StringIO
21
22
import os
22
23
import stat
23
24
import sys
49
50
        # '.bzrignore'.
50
51
        self.assertEqual(['test/a'], sorted(ball.getnames()))
51
52
 
 
53
        out, err = self.run_bzr('export --format=tgz --root=test -')
 
54
        ball = tarfile.open('', fileobj=StringIO(out))
 
55
        self.assertEqual(['test/a'], sorted(ball.getnames()))
 
56
 
52
57
    def test_tar_export_unicode(self):
53
58
        tree = self.make_branch_and_tree('tar')
54
59
        fname = u'\xe5.txt'