221
complex_shortcut2 = {'d':[NULL_REVISION],
222
'x':['d'], 'y':['x'],
223
'e':['y'], 'f':['d'], 'g':['f', 'i'], 'h':['f'],
224
'i':['e'], 'j':['g'], 'k':['j'],
225
'l':['k'], 'm':['i', 's'], 'n':['s', 'h'],
226
'o':['l'], 'p':['o'], 'q':['p'],
236
complex_shortcut2 = {'a':[NULL_REVISION], 'b':['a'], 'c':['b'], 'd':['c'],
237
'e':['d'], 'f':['e'],
238
'g':['f'], 'h':['d'], 'k':['h', 'i'], 'j':['h'],
239
'i':['g'], 'l':['k'], 'm':['l'],
240
'n':['m'], 't':['i', 's'], 'u':['s', 'j'],
241
'o':['n'], 'p':['o'], 'q':['p'],
227
242
'r':['q'], 's':['r'],
506
521
def test_graph_difference_complex_shortcut2(self):
507
522
graph = self.make_graph(complex_shortcut2)
508
self.assertEqual((set(['m']), set(['h', 'n'])),
509
graph.find_difference('m', 'n'))
523
self.assertEqual((set(['t']), set(['j', 'u'])),
524
graph.find_difference('t', 'u'))
511
526
def test_graph_difference_shortcut_extra_root(self):
512
527
graph = self.make_graph(shortcut_extra_root)