Conditions | 4 |
Total Lines | 25 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | # coding: utf8 |
||
15 | def make_test(p, q): |
||
16 | knot = Knot(p, q) |
||
17 | yield " def test_{}_{}(self):".format(p, q) |
||
18 | yield " knot = Knot({}, {})".format(p, q) |
||
19 | yield " self.assertEqual(" |
||
20 | yield " knot.strings," |
||
21 | yield " [" |
||
22 | for string in knot.strings: |
||
23 | yield " String(" |
||
24 | yield " {},".format(string.k) |
||
25 | yield " [" |
||
26 | for segment in string.segments: |
||
27 | yield remove_kwargs(" {},".format(segment)) |
||
28 | yield " ]," |
||
29 | yield " [" |
||
30 | for bridge in string.bridges: |
||
31 | yield " Bridge(" |
||
32 | yield remove_kwargs(" {},".format(bridge.before)) |
||
33 | yield remove_kwargs(" {},".format(bridge.after)) |
||
34 | yield remove_kwargs(" {},".format(bridge.tunnel)) |
||
35 | yield " )," |
||
36 | yield " ]," |
||
37 | yield " )," |
||
38 | yield " ]" |
||
39 | yield " )" |
||
40 | |||
57 |