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.
1575
1575
t.put_bytes('test.kndx', '')
1577
1577
knit = self.make_test_knit()
1579
1579
def test_knit_index_checks_header(self):
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)