~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bzrdir.py

  • Committer: Robey Pointer
  • Date: 2006-09-08 18:52:17 UTC
  • mfrom: (1993 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1996.
  • Revision ID: robey@lag.net-20060908185217-6a4406e1d41753f5
merge from bzr.dev

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('.'))