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