~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport_implementations.py

  • Committer: Robert Collins
  • Date: 2007-08-05 02:57:45 UTC
  • mto: (2592.3.77 repository)
  • mto: This revision was merged to the branch mainline in revision 2741.
  • Revision ID: robertc@robertcollins.net-20070805025745-eg2qmr8jzsky39y2
StartĀ open_file_streamĀ logic.

Show diffs side-by-side

added added

removed removed

Lines of Context:
633
633
        t.mkdir('dnomode', mode=None)
634
634
        self.assertTransportMode(t, 'dnomode', 0777 & ~umask)
635
635
 
 
636
    def test_opening_a_file_stream_creates_file(self):
 
637
        t = self.get_transport()
 
638
        if t.is_readonly():
 
639
            return
 
640
        handle = t.open_file_stream('foo')
 
641
        try:
 
642
            self.assertEqual('', t.get_bytes('foo'))
 
643
        finally:
 
644
            t.close_file_stream('foo')
 
645
 
636
646
    def test_copy_to(self):
637
647
        # FIXME: test:   same server to same server (partly done)
638
648
        # same protocol two servers