1528
1528
# build a complex graph across several indices.
1530
1530
index1 = self.make_g_index('1', 2, [
1531
('tip', (['parent'], [], ), ' 0 100'),
1531
('tip', (['parent'], [], ), 'N0 100'),
1532
1532
('tail', ([], []), '')])
1533
1533
index2 = self.make_g_index('2', 2, [
1534
1534
('parent', (['tail', 'ghost'], ['tail']), ' 100 78'),
1535
1535
('separate', ([], []), '')])
1537
1537
index1 = self.make_g_index('1', 1, [
1538
('tip', (['parent'], ), ' 0 100'),
1538
('tip', (['parent'], ), 'N0 100'),
1539
1539
('tail', ([], ), '')])
1540
1540
index2 = self.make_g_index('2', 1, [
1541
1541
('parent', (['tail', 'ghost'], ), ' 100 78'),
1642
1642
self.assertEqual('fulltext', index.get_method('tip'))
1643
1643
self.assertEqual('fulltext', index.get_method('parent'))
1645
def test_get_options_deltas(self):
1646
index = self.two_graph_index(deltas=True)
1647
self.assertEqual('fulltext,no-eol', index.get_options('tip'))
1648
self.assertEqual('line-delta', index.get_options('parent'))
1650
def test_get_options_no_deltas(self):
1651
# check that the parent-history lookup is ignored with deltas=False.
1652
index = self.two_graph_index(deltas=False)
1653
self.assertEqual('fulltext,no-eol', index.get_options('tip'))
1654
self.assertEqual('fulltext', index.get_options('parent'))
1645
1657
## --- mutating tests for later ---
1647
1659
# def test_add_version