1579
1571
# could leave an empty .kndx file, which bzr would later claim was a
1580
1572
# corrupted file since the header was not present. In reality, the file
1581
1573
# just wasn't created, so it should be ignored.
1583
1575
t.put_bytes('test.kndx', '')
1585
1577
knit = self.make_test_knit()
1587
1579
def test_knit_index_checks_header(self):
1589
1581
t.put_bytes('test.kndx', '# not really a knit header\n\n')
1590
1582
k = self.make_test_knit()
1591
1583
self.assertRaises(KnitHeaderError, k.keys)