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