~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_knit.py

  • Committer: Jonathan Riddell
  • Date: 2011-09-16 11:13:47 UTC
  • mto: This revision was merged to the branch mainline in revision 6144.
  • Revision ID: jriddell@canonical.com-20110916111347-fyjk426bkl0jrbfu
gettext() show_warning usage

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)