/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport.py

  • Committer: Andrew Bennetts
  • Date: 2006-11-21 08:19:35 UTC
  • mfrom: (2018.8.1 split smart)
  • mto: (2018.5.35 hpss)
  • mto: This revision was merged to the branch mainline in revision 2435.
  • Revision ID: andrew.bennetts@canonical.com-20061121081935-6440ef860ef00262
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
238
238
        transport.append_bytes('foo', 'content')
239
239
        self.assertEquals(True, transport.has('foo'))
240
240
 
 
241
    def test_list_dir(self):
 
242
        transport = MemoryTransport()
 
243
        transport.put_bytes('foo', 'content')
 
244
        transport.mkdir('dir')
 
245
        transport.put_bytes('dir/subfoo', 'content')
 
246
        transport.put_bytes('dirlike', 'content')
 
247
 
 
248
        self.assertEquals(['dir', 'dirlike', 'foo'], sorted(transport.list_dir('.')))
 
249
        self.assertEquals(['subfoo'], sorted(transport.list_dir('dir')))
 
250
 
241
251
    def test_mkdir(self):
242
252
        transport = MemoryTransport()
243
253
        transport.mkdir('dir')