/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_knit.py

  • Committer: Martin Pool
  • Date: 2010-08-13 07:56:06 UTC
  • mfrom: (5050.17.4 2.2)
  • mto: (5050.17.6 2.2)
  • mto: This revision was merged to the branch mainline in revision 5379.
  • Revision ID: mbp@sourcefrog.net-20100813075606-8zgmov3ezwans2zo
merge bzr 2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    osutils,
27
27
    pack,
28
28
    tests,
 
29
    transport,
29
30
    tuned_gzip,
30
31
    )
31
32
from bzrlib.errors import (
53
54
    TestCaseWithTransport,
54
55
    TestNotApplicable,
55
56
    )
56
 
from bzrlib.transport import get_transport
57
57
from bzrlib.versionedfile import (
58
58
    AbsentContentFactory,
59
59
    ConstantMapper,
1571
1571
        # could leave an empty .kndx file, which bzr would later claim was a
1572
1572
        # corrupted file since the header was not present. In reality, the file
1573
1573
        # just wasn't created, so it should be ignored.
1574
 
        t = get_transport('.')
 
1574
        t = transport.get_transport('.')
1575
1575
        t.put_bytes('test.kndx', '')
1576
1576
 
1577
1577
        knit = self.make_test_knit()
1578
1578
 
1579
1579
    def test_knit_index_checks_header(self):
1580
 
        t = get_transport('.')
 
1580
        t = transport.get_transport('.')
1581
1581
        t.put_bytes('test.kndx', '# not really a knit header\n\n')
1582
1582
        k = self.make_test_knit()
1583
1583
        self.assertRaises(KnitHeaderError, k.keys)