~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2006-01-16 21:36:37 UTC
  • mto: (1685.1.1 bzr-encoding)
  • mto: This revision was merged to the branch mainline in revision 1752.
  • Revision ID: john@arbash-meinel.com-20060116213637-2f4cc1c55769f464
Adding an InvalidURL so transports can report they expect utf-8 quoted paths. Updated tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
649
649
                    end = os.linesep
650
650
                else:
651
651
                    raise BzrError('Invalid line ending request %r' % (line_endings,))
652
 
                content = "contents of %s%s" % (name, end)
 
652
                content = "contents of %s%s" % (name.encode('utf-8'), end)
653
653
                transport.put(urlescape(name), StringIO(content))
654
654
 
655
655
    def build_tree_contents(self, shape):