~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport_implementations.py

(mbp) merge bzr.dev to 0.8, prepare for release

Show diffs side-by-side

added added

removed removed

Lines of Context:
506
506
        self.check_transport_contents(t.get('f2').read(), t, 'c')
507
507
        self.check_transport_contents(t.get('f3').read(), t, 'd')
508
508
 
 
509
    def test_append_mode(self):
 
510
        # check append accepts a mode
 
511
        t = self.get_transport()
 
512
        if t.is_readonly():
 
513
            return
 
514
        t.append('f', StringIO('f'), mode=None)
 
515
        
509
516
    def test_delete(self):
510
517
        # TODO: Test Transport.delete
511
518
        t = self.get_transport()
781
788
        self.assertEqual([u'a', u'c', u'c2'], sorted_list('.'))
782
789
        self.assertEqual([u'e'], sorted_list(u'c'))
783
790
 
784
 
        self.assertListRaises(NoSuchFile, t.list_dir, 'q')
785
 
        self.assertListRaises(NoSuchFile, t.list_dir, 'c/f')
786
 
        self.assertListRaises(NoSuchFile, t.list_dir, 'a')
 
791
        self.assertListRaises(PathError, t.list_dir, 'q')
 
792
        self.assertListRaises(PathError, t.list_dir, 'c/f')
 
793
        self.assertListRaises(PathError, t.list_dir, 'a')
787
794
 
788
795
    def test_clone(self):
789
796
        # TODO: Test that clone moves up and down the filesystem