~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bzrdir.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-09-06 16:21:16 UTC
  • mfrom: (1955.3.30 transport_bytes)
  • Revision ID: pqm@pqm.ubuntu.com-20060906162116-90b02cf97bcc11e8
(jam) create Transport.*_{file,bytes}

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
        """Create a bzr dir."""
95
95
        t = get_transport(url)
96
96
        t.mkdir('.bzr')
97
 
        t.put('.bzr/branch-format', StringIO(self.get_format_string()))
 
97
        t.put_bytes('.bzr/branch-format', self.get_format_string())
98
98
        return SampleBzrDir(t, self)
99
99
 
100
100
    def is_supported(self):
129
129
    def test_find_format_unknown_format(self):
130
130
        t = get_transport(self.get_url())
131
131
        t.mkdir('.bzr')
132
 
        t.put('.bzr/branch-format', StringIO())
 
132
        t.put_bytes('.bzr/branch-format', '')
133
133
        self.assertRaises(UnknownFormatError,
134
134
                          bzrdir.BzrDirFormat.find_format,
135
135
                          get_transport('.'))