~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_knit.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-08-20 22:42:34 UTC
  • mfrom: (6083.1.2 more-get-transport-from)
  • Revision ID: pqm@pqm.ubuntu.com-20110820224234-l0c0cmesdnfp2srq
(jelmer) Use get_transport_from_path and get_transport_from_url in more
 places. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1603
1603
        # could leave an empty .kndx file, which bzr would later claim was a
1604
1604
        # corrupted file since the header was not present. In reality, the file
1605
1605
        # just wasn't created, so it should be ignored.
1606
 
        t = transport.get_transport('.')
 
1606
        t = transport.get_transport_from_path('.')
1607
1607
        t.put_bytes('test.kndx', '')
1608
1608
 
1609
1609
        knit = self.make_test_knit()
1610
1610
 
1611
1611
    def test_knit_index_checks_header(self):
1612
 
        t = transport.get_transport('.')
 
1612
        t = transport.get_transport_from_path('.')
1613
1613
        t.put_bytes('test.kndx', '# not really a knit header\n\n')
1614
1614
        k = self.make_test_knit()
1615
1615
        self.assertRaises(KnitHeaderError, k.keys)