summaryrefslogtreecommitdiff
path: root/tests/migrations/test_graph.py
diff options
context:
space:
mode:
authorDražen Odobašić <dodobas@candela-it.com>2015-09-11 19:33:12 -0400
committerTim Graham <timograham@gmail.com>2015-09-12 11:40:50 -0400
commitb1e33ceceda1e75ff68c7deed8f6659683a195d3 (patch)
treee4e446f69194f2dc3c9c7ee3ecf48290ea8d4d31 /tests/migrations/test_graph.py
parent84b0a8d2aad042fb573df5055b6153770d0929ac (diff)
Fixed #23395 -- Limited line lengths to 119 characters.
Diffstat (limited to 'tests/migrations/test_graph.py')
-rw-r--r--tests/migrations/test_graph.py16
1 files changed, 13 insertions, 3 deletions
diff --git a/tests/migrations/test_graph.py b/tests/migrations/test_graph.py
index 1d517f242d..29738dfdf0 100644
--- a/tests/migrations/test_graph.py
+++ b/tests/migrations/test_graph.py
@@ -47,7 +47,10 @@ class GraphTests(SimpleTestCase):
# Test whole graph
self.assertEqual(
graph.forwards_plan(("app_a", "0004")),
- [('app_b', '0001'), ('app_b', '0002'), ('app_a', '0001'), ('app_a', '0002'), ('app_a', '0003'), ('app_a', '0004')],
+ [
+ ('app_b', '0001'), ('app_b', '0002'), ('app_a', '0001'),
+ ('app_a', '0002'), ('app_a', '0003'), ('app_a', '0004'),
+ ],
)
# Test reverse to b:0002
self.assertEqual(
@@ -101,12 +104,19 @@ class GraphTests(SimpleTestCase):
# Test whole graph
self.assertEqual(
graph.forwards_plan(("app_a", "0004")),
- [('app_b', '0001'), ('app_c', '0001'), ('app_a', '0001'), ('app_a', '0002'), ('app_c', '0002'), ('app_b', '0002'), ('app_a', '0003'), ('app_a', '0004')],
+ [
+ ('app_b', '0001'), ('app_c', '0001'), ('app_a', '0001'),
+ ('app_a', '0002'), ('app_c', '0002'), ('app_b', '0002'),
+ ('app_a', '0003'), ('app_a', '0004'),
+ ],
)
# Test reverse to b:0001
self.assertEqual(
graph.backwards_plan(("app_b", "0001")),
- [('app_a', '0004'), ('app_c', '0002'), ('app_c', '0001'), ('app_a', '0003'), ('app_b', '0002'), ('app_b', '0001')],
+ [
+ ('app_a', '0004'), ('app_c', '0002'), ('app_c', '0001'),
+ ('app_a', '0003'), ('app_b', '0002'), ('app_b', '0001'),
+ ],
)
# Test roots and leaves
self.assertEqual(