1600
1603
# could leave an empty .kndx file, which bzr would later claim was a
1601
1604
# corrupted file since the header was not present. In reality, the file
1602
1605
# just wasn't created, so it should be ignored.
1604
1607
t.put_bytes('test.kndx', '')
1606
1609
knit = self.make_test_knit()
1608
1611
def test_knit_index_checks_header(self):
1610
1613
t.put_bytes('test.kndx', '# not really a knit header\n\n')
1611
1614
k = self.make_test_knit()
1612
1615
self.assertRaises(KnitHeaderError, k.keys)