|
2 | 2 | # snapshottest: v1 - https://goo.gl/zC4yUc |
3 | 3 | from __future__ import unicode_literals |
4 | 4 |
|
5 | | -from snapshottest import Snapshot |
| 5 | +from snapshottest import GenericRepr, Snapshot |
| 6 | + |
6 | 7 |
|
7 | 8 | snapshots = Snapshot() |
8 | 9 |
|
9 | | -snapshots["test_management_command_partition_dry_run[-d] 1"] = ( |
10 | | - """test: |
11 | | - - tobedeleted |
12 | | - + tobecreated |
13 | | -
|
14 | | -1 partitions will be deleted |
15 | | -1 partitions will be created |
16 | | -""", |
17 | | - "", |
18 | | -) |
19 | | - |
20 | | -snapshots["test_management_command_partition_dry_run[--dry] 1"] = ( |
21 | | - """test: |
22 | | - - tobedeleted |
23 | | - + tobecreated |
24 | | -
|
25 | | -1 partitions will be deleted |
26 | | -1 partitions will be created |
27 | | -""", |
28 | | - "", |
29 | | -) |
30 | | - |
31 | | -snapshots["test_management_command_partition_auto_confirm[-y] 1"] = ( |
32 | | - """test: |
33 | | - - tobedeleted |
34 | | - + tobecreated |
35 | | -
|
36 | | -1 partitions will be deleted |
37 | | -1 partitions will be created |
38 | | -Operations applied. |
39 | | -""", |
40 | | - "", |
41 | | -) |
42 | | - |
43 | | -snapshots["test_management_command_partition_auto_confirm[--yes] 1"] = ( |
44 | | - """test: |
45 | | - - tobedeleted |
46 | | - + tobecreated |
47 | | -
|
48 | | -1 partitions will be deleted |
49 | | -1 partitions will be created |
50 | | -Operations applied. |
51 | | -""", |
52 | | - "", |
53 | | -) |
54 | | - |
55 | | -snapshots["test_management_command_partition_confirm_yes[y] 1"] = ( |
56 | | - """test: |
57 | | - - tobedeleted |
58 | | - + tobecreated |
59 | | -
|
60 | | -1 partitions will be deleted |
61 | | -1 partitions will be created |
62 | | -Do you want to proceed? (y/N) Operations applied. |
63 | | -""", |
64 | | - "", |
65 | | -) |
66 | | - |
67 | | -snapshots["test_management_command_partition_confirm_yes[Y] 1"] = ( |
68 | | - """test: |
69 | | - - tobedeleted |
70 | | - + tobecreated |
71 | | -
|
72 | | -1 partitions will be deleted |
73 | | -1 partitions will be created |
74 | | -Do you want to proceed? (y/N) Operations applied. |
75 | | -""", |
76 | | - "", |
77 | | -) |
78 | | - |
79 | | -snapshots["test_management_command_partition_confirm_yes[yes] 1"] = ( |
80 | | - """test: |
81 | | - - tobedeleted |
82 | | - + tobecreated |
83 | | -
|
84 | | -1 partitions will be deleted |
85 | | -1 partitions will be created |
86 | | -Do you want to proceed? (y/N) Operations applied. |
87 | | -""", |
88 | | - "", |
89 | | -) |
90 | | - |
91 | | -snapshots["test_management_command_partition_confirm_yes[YES] 1"] = ( |
92 | | - """test: |
93 | | - - tobedeleted |
94 | | - + tobecreated |
95 | | -
|
96 | | -1 partitions will be deleted |
97 | | -1 partitions will be created |
98 | | -Do you want to proceed? (y/N) Operations applied. |
99 | | -""", |
100 | | - "", |
101 | | -) |
102 | | - |
103 | | -snapshots["test_management_command_partition_confirm_no[n] 1"] = ( |
104 | | - """test: |
105 | | - - tobedeleted |
106 | | - + tobecreated |
107 | | -
|
108 | | -1 partitions will be deleted |
109 | | -1 partitions will be created |
110 | | -Do you want to proceed? (y/N) Operation aborted. |
111 | | -""", |
112 | | - "", |
113 | | -) |
114 | | - |
115 | | -snapshots["test_management_command_partition_confirm_no[N] 1"] = ( |
116 | | - """test: |
117 | | - - tobedeleted |
118 | | - + tobecreated |
119 | | -
|
120 | | -1 partitions will be deleted |
121 | | -1 partitions will be created |
122 | | -Do you want to proceed? (y/N) Operation aborted. |
123 | | -""", |
124 | | - "", |
125 | | -) |
126 | | - |
127 | | -snapshots["test_management_command_partition_confirm_no[no] 1"] = ( |
128 | | - """test: |
129 | | - - tobedeleted |
130 | | - + tobecreated |
131 | | -
|
132 | | -1 partitions will be deleted |
133 | | -1 partitions will be created |
134 | | -Do you want to proceed? (y/N) Operation aborted. |
135 | | -""", |
136 | | - "", |
137 | | -) |
138 | | - |
139 | | -snapshots["test_management_command_partition_confirm_no[No] 1"] = ( |
140 | | - """test: |
141 | | - - tobedeleted |
142 | | - + tobecreated |
143 | | -
|
144 | | -1 partitions will be deleted |
145 | | -1 partitions will be created |
146 | | -Do you want to proceed? (y/N) Operation aborted. |
147 | | -""", |
148 | | - "", |
149 | | -) |
150 | | - |
151 | | -snapshots["test_management_command_partition_confirm_no[NO] 1"] = ( |
152 | | - """test: |
153 | | - - tobedeleted |
154 | | - + tobecreated |
155 | | -
|
156 | | -1 partitions will be deleted |
157 | | -1 partitions will be created |
158 | | -Do you want to proceed? (y/N) Operation aborted. |
159 | | -""", |
160 | | - "", |
161 | | -) |
| 10 | +snapshots['test_management_command_partition_auto_confirm[--yes] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\nOperations applied.\\n', err='')") |
| 11 | + |
| 12 | +snapshots['test_management_command_partition_auto_confirm[-y] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\nOperations applied.\\n', err='')") |
| 13 | + |
| 14 | +snapshots['test_management_command_partition_confirm_no[NO] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\nDo you want to proceed? (y/N) Operation aborted.\\n', err='')") |
| 15 | + |
| 16 | +snapshots['test_management_command_partition_confirm_no[N] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\nDo you want to proceed? (y/N) Operation aborted.\\n', err='')") |
| 17 | + |
| 18 | +snapshots['test_management_command_partition_confirm_no[No] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\nDo you want to proceed? (y/N) Operation aborted.\\n', err='')") |
| 19 | + |
| 20 | +snapshots['test_management_command_partition_confirm_no[n] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\nDo you want to proceed? (y/N) Operation aborted.\\n', err='')") |
| 21 | + |
| 22 | +snapshots['test_management_command_partition_confirm_no[no] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\nDo you want to proceed? (y/N) Operation aborted.\\n', err='')") |
| 23 | + |
| 24 | +snapshots['test_management_command_partition_confirm_yes[YES] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\nDo you want to proceed? (y/N) Operations applied.\\n', err='')") |
| 25 | + |
| 26 | +snapshots['test_management_command_partition_confirm_yes[Y] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\nDo you want to proceed? (y/N) Operations applied.\\n', err='')") |
| 27 | + |
| 28 | +snapshots['test_management_command_partition_confirm_yes[y] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\nDo you want to proceed? (y/N) Operations applied.\\n', err='')") |
| 29 | + |
| 30 | +snapshots['test_management_command_partition_confirm_yes[yes] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\nDo you want to proceed? (y/N) Operations applied.\\n', err='')") |
| 31 | + |
| 32 | +snapshots['test_management_command_partition_dry_run[--dry] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\n', err='')") |
| 33 | + |
| 34 | +snapshots['test_management_command_partition_dry_run[-d] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\n', err='')") |
0 commit comments