mirror of https://github.com/django/django.git
parent
ba3e976186
commit
943b1047de
|
@ -139,9 +139,9 @@ class GraphTests(TestCase):
|
||||||
graph.add_node(('A', '0001'), None)
|
graph.add_node(('A', '0001'), None)
|
||||||
graph.add_node(('C', '0001'), None)
|
graph.add_node(('C', '0001'), None)
|
||||||
graph.add_node(('B', '0001'), None)
|
graph.add_node(('B', '0001'), None)
|
||||||
graph.add_dependency('A.0001', ('A', '0001'),('B', '0001'))
|
graph.add_dependency('A.0001', ('A', '0001'), ('B', '0001'))
|
||||||
graph.add_dependency('B.0001', ('B', '0001'),('A', '0001'))
|
graph.add_dependency('B.0001', ('B', '0001'), ('A', '0001'))
|
||||||
graph.add_dependency('C.0001', ('C', '0001'),('B', '0001'))
|
graph.add_dependency('C.0001', ('C', '0001'), ('B', '0001'))
|
||||||
|
|
||||||
self.assertRaises(
|
self.assertRaises(
|
||||||
CircularDependencyError,
|
CircularDependencyError,
|
||||||
|
|
Loading…
Reference in New Issue