~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport_implementations.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-29 20:36:13 UTC
  • mfrom: (1910.7.16 list_dir return type)
  • Revision ID: pqm@pqm.ubuntu.com-20060829203613-7e3625a2434c3a19
(spiv) test_list_dir_result_is_url_escaped

Show diffs side-by-side

added added

removed removed

Lines of Context:
773
773
        self.assertListRaises(PathError, t.list_dir, 'c/f')
774
774
        self.assertListRaises(PathError, t.list_dir, 'a')
775
775
 
 
776
    def test_list_dir_result_is_url_escaped(self):
 
777
        t = self.get_transport()
 
778
        if not t.listable():
 
779
            raise TestSkipped("transport not listable")
 
780
 
 
781
        if not t.is_readonly():
 
782
            self.build_tree(['a/', 'a/%'], transport=t)
 
783
        else:
 
784
            self.build_tree(['a/', 'a/%'])
 
785
        
 
786
        names = list(t.list_dir('a'))
 
787
        self.assertEqual(['%25'], names)
 
788
        self.assertIsInstance(names[0], str)
 
789
 
776
790
    def test_clone(self):
777
791
        # TODO: Test that clone moves up and down the filesystem
778
792
        t1 = self.get_transport()