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