Merge lp:~sylvain-pineau/checkbox/fix-python3.5-unittest into lp:checkbox
- fix-python3.5-unittest
- Merge into trunk
Proposed by
Sylvain Pineau
Status: | Merged |
---|---|
Approved by: | Zygmunt Krynicki |
Approved revision: | no longer in the source branch. |
Merged at revision: | 3966 |
Proposed branch: | lp:~sylvain-pineau/checkbox/fix-python3.5-unittest |
Merge into: | lp:checkbox |
Diff against target: |
258 lines (+53/-37) 3 files modified
plainbox/plainbox/impl/secure/providers/test_v1.py (+2/-2) plainbox/plainbox/impl/session/test_resume.py (+37/-25) plainbox/plainbox/impl/session/test_suspend.py (+14/-10) |
To merge this branch: | bzr merge lp:~sylvain-pineau/checkbox/fix-python3.5-unittest |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Zygmunt Krynicki (community) | Approve | ||
Review via email: mp+269486@code.launchpad.net |
Commit message
Description of the change
Fix the suspend/resume unit tests after replacing the unittest CamelCase methods names with their underscore versions.
To post a comment you must log in.
- 3963. By Zygmunt Krynicki
-
"automatic merge of lp:~zyga/checkbox/fix-developer-decorators/ by tarmac [r=kissiel]
[bug=][ author= zyga]" - 3964. By Maciej Kisielewski
-
"automatic merge of lp:~kissiel/checkbox/session-assistant-improvements/ by tarmac [r=zyga]
[bug=][ author= kissiel] " - 3965. By Maciej Kisielewski
-
"automatic merge of lp:~kissiel/checkbox/session-assistant-improvements/ by tarmac [r=zyga]
[bug=][ author= kissiel] "
- 3966. By Sylvain Pineau
-
"automatic merge of lp:~sylvain-pineau/checkbox/fix-python3.5-unittest/ by tarmac [r=zyga]
[bug=][ author= sylvain- pineau] "
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'plainbox/plainbox/impl/secure/providers/test_v1.py' | |||
2 | --- plainbox/plainbox/impl/secure/providers/test_v1.py 2015-08-03 09:25:27 +0000 | |||
3 | +++ plainbox/plainbox/impl/secure/providers/test_v1.py 2015-08-28 10:02:28 +0000 | |||
4 | @@ -98,7 +98,7 @@ | |||
5 | 98 | def test_existing_directories_work(self, mock_isdir): | 98 | def test_existing_directories_work(self, mock_isdir): |
6 | 99 | mock_isdir.return_value = True | 99 | mock_isdir.return_value = True |
7 | 100 | self.assertEqual(self.validator(self.variable, self._PATH), None) | 100 | self.assertEqual(self.validator(self.variable, self._PATH), None) |
9 | 101 | mock_isdir.assertCalledWith(self._PATH) | 101 | mock_isdir.assert_called_with(self._PATH) |
10 | 102 | 102 | ||
11 | 103 | @mock.patch('os.path.isdir') | 103 | @mock.patch('os.path.isdir') |
12 | 104 | def test_missing_directories_dont(self, mock_isdir): | 104 | def test_missing_directories_dont(self, mock_isdir): |
13 | @@ -106,7 +106,7 @@ | |||
14 | 106 | self.assertEqual( | 106 | self.assertEqual( |
15 | 107 | self.validator(self.variable, self._PATH), | 107 | self.validator(self.variable, self._PATH), |
16 | 108 | "no such directory") | 108 | "no such directory") |
18 | 109 | mock_isdir.assertCalledWith(self._PATH) | 109 | mock_isdir.assert_called_with(self._PATH) |
19 | 110 | 110 | ||
20 | 111 | 111 | ||
21 | 112 | class AbsolutePathValidatorTests(TestCase): | 112 | class AbsolutePathValidatorTests(TestCase): |
22 | 113 | 113 | ||
23 | === modified file 'plainbox/plainbox/impl/session/test_resume.py' | |||
24 | --- plainbox/plainbox/impl/session/test_resume.py 2015-08-24 20:10:03 +0000 | |||
25 | +++ plainbox/plainbox/impl/session/test_resume.py 2015-08-28 10:02:28 +0000 | |||
26 | @@ -126,7 +126,7 @@ | |||
27 | 126 | b'{"app_blob":null,"flags":[],"running_job_name":null,"title":null' | 126 | b'{"app_blob":null,"flags":[],"running_job_name":null,"title":null' |
28 | 127 | b'},"results":{}},"version":1}') | 127 | b'},"results":{}},"version":1}') |
29 | 128 | SessionResumeHelper([], None, None).resume(data) | 128 | SessionResumeHelper([], None, None).resume(data) |
31 | 129 | mocked_helper1.resume_json.assertCalledOnce() | 129 | mocked_helper1.resume_json.assert_called_once() |
32 | 130 | 130 | ||
33 | 131 | @mock.patch('plainbox.impl.session.resume.SessionResumeHelper2') | 131 | @mock.patch('plainbox.impl.session.resume.SessionResumeHelper2') |
34 | 132 | def test_resume_dispatch_v2(self, mocked_helper2): | 132 | def test_resume_dispatch_v2(self, mocked_helper2): |
35 | @@ -135,7 +135,7 @@ | |||
36 | 135 | b'{"app_blob":null,"flags":[],"running_job_name":null,"title":null' | 135 | b'{"app_blob":null,"flags":[],"running_job_name":null,"title":null' |
37 | 136 | b'},"results":{}},"version":2}') | 136 | b'},"results":{}},"version":2}') |
38 | 137 | SessionResumeHelper([], None, None).resume(data) | 137 | SessionResumeHelper([], None, None).resume(data) |
40 | 138 | mocked_helper2.resume_json.assertCalledOnce() | 138 | mocked_helper2.resume_json.assert_called_once() |
41 | 139 | 139 | ||
42 | 140 | @mock.patch('plainbox.impl.session.resume.SessionResumeHelper3') | 140 | @mock.patch('plainbox.impl.session.resume.SessionResumeHelper3') |
43 | 141 | def test_resume_dispatch_v3(self, mocked_helper3): | 141 | def test_resume_dispatch_v3(self, mocked_helper3): |
44 | @@ -145,7 +145,7 @@ | |||
45 | 145 | b'"running_job_name":null,"title":null' | 145 | b'"running_job_name":null,"title":null' |
46 | 146 | b'},"results":{}},"version":3}') | 146 | b'},"results":{}},"version":3}') |
47 | 147 | SessionResumeHelper([], None, None).resume(data) | 147 | SessionResumeHelper([], None, None).resume(data) |
49 | 148 | mocked_helper3.resume_json.assertCalledOnce() | 148 | mocked_helper3.resume_json.assert_called_once() |
50 | 149 | 149 | ||
51 | 150 | @mock.patch('plainbox.impl.session.resume.SessionResumeHelper4') | 150 | @mock.patch('plainbox.impl.session.resume.SessionResumeHelper4') |
52 | 151 | def test_resume_dispatch_v4(self, mocked_helper4): | 151 | def test_resume_dispatch_v4(self, mocked_helper4): |
53 | @@ -155,7 +155,7 @@ | |||
54 | 155 | b'"running_job_name":null,"title":null' | 155 | b'"running_job_name":null,"title":null' |
55 | 156 | b'},"results":{}},"version":4}') | 156 | b'},"results":{}},"version":4}') |
56 | 157 | SessionResumeHelper([], None, None).resume(data) | 157 | SessionResumeHelper([], None, None).resume(data) |
58 | 158 | mocked_helper4.resume_json.assertCalledOnce() | 158 | mocked_helper4.resume_json.assert_called_once() |
59 | 159 | 159 | ||
60 | 160 | @mock.patch('plainbox.impl.session.resume.SessionResumeHelper5') | 160 | @mock.patch('plainbox.impl.session.resume.SessionResumeHelper5') |
61 | 161 | def test_resume_dispatch_v5(self, mocked_helper5): | 161 | def test_resume_dispatch_v5(self, mocked_helper5): |
62 | @@ -165,7 +165,7 @@ | |||
63 | 165 | b'"running_job_name":null,"title":null' | 165 | b'"running_job_name":null,"title":null' |
64 | 166 | b'},"results":{}},"version":5}') | 166 | b'},"results":{}},"version":5}') |
65 | 167 | SessionResumeHelper([], None, None).resume(data) | 167 | SessionResumeHelper([], None, None).resume(data) |
67 | 168 | mocked_helper5.resume_json.assertCalledOnce() | 168 | mocked_helper5.resume_json.assert_called_once() |
68 | 169 | 169 | ||
69 | 170 | @mock.patch('plainbox.impl.session.resume.SessionResumeHelper6') | 170 | @mock.patch('plainbox.impl.session.resume.SessionResumeHelper6') |
70 | 171 | def test_resume_dispatch_v6(self, mocked_helper6): | 171 | def test_resume_dispatch_v6(self, mocked_helper6): |
71 | @@ -175,7 +175,7 @@ | |||
72 | 175 | b'"running_job_name":null,"title":null' | 175 | b'"running_job_name":null,"title":null' |
73 | 176 | b'},"results":{}},"version":6}') | 176 | b'},"results":{}},"version":6}') |
74 | 177 | SessionResumeHelper([], None, None).resume(data) | 177 | SessionResumeHelper([], None, None).resume(data) |
76 | 178 | mocked_helper6.resume_json.assertCalledOnce() | 178 | mocked_helper6.resume_json.assert_called_once() |
77 | 179 | 179 | ||
78 | 180 | def test_resume_dispatch_v7(self): | 180 | def test_resume_dispatch_v7(self): |
79 | 181 | data = gzip.compress( | 181 | data = gzip.compress( |
80 | @@ -194,7 +194,7 @@ | |||
81 | 194 | b'{"app_blob":null,"flags":[],"running_job_name":null,"title":null' | 194 | b'{"app_blob":null,"flags":[],"running_job_name":null,"title":null' |
82 | 195 | b'},"results":{}},"version":1}') | 195 | b'},"results":{}},"version":1}') |
83 | 196 | SessionPeekHelper().peek(data) | 196 | SessionPeekHelper().peek(data) |
85 | 197 | mocked_helper1.resume_json.assertCalledOnce() | 197 | mocked_helper1.resume_json.assert_called_once() |
86 | 198 | 198 | ||
87 | 199 | @mock.patch('plainbox.impl.session.resume.SessionPeekHelper2') | 199 | @mock.patch('plainbox.impl.session.resume.SessionPeekHelper2') |
88 | 200 | def test_peek_dispatch_v2(self, mocked_helper2): | 200 | def test_peek_dispatch_v2(self, mocked_helper2): |
89 | @@ -203,7 +203,7 @@ | |||
90 | 203 | b'{"app_blob":null,"flags":[],"running_job_name":null,"title":null' | 203 | b'{"app_blob":null,"flags":[],"running_job_name":null,"title":null' |
91 | 204 | b'},"results":{}},"version":2}') | 204 | b'},"results":{}},"version":2}') |
92 | 205 | SessionPeekHelper().peek(data) | 205 | SessionPeekHelper().peek(data) |
94 | 206 | mocked_helper2.resume_json.assertCalledOnce() | 206 | mocked_helper2.resume_json.assert_called_once() |
95 | 207 | 207 | ||
96 | 208 | @mock.patch('plainbox.impl.session.resume.SessionPeekHelper3') | 208 | @mock.patch('plainbox.impl.session.resume.SessionPeekHelper3') |
97 | 209 | def test_peek_dispatch_v3(self, mocked_helper3): | 209 | def test_peek_dispatch_v3(self, mocked_helper3): |
98 | @@ -212,7 +212,7 @@ | |||
99 | 212 | b'{"app_blob":null,"flags":[],"running_job_name":null,"title":null' | 212 | b'{"app_blob":null,"flags":[],"running_job_name":null,"title":null' |
100 | 213 | b'},"results":{}},"version":3}') | 213 | b'},"results":{}},"version":3}') |
101 | 214 | SessionPeekHelper().peek(data) | 214 | SessionPeekHelper().peek(data) |
103 | 215 | mocked_helper3.resume_json.assertCalledOnce() | 215 | mocked_helper3.resume_json.assert_called_once() |
104 | 216 | 216 | ||
105 | 217 | @mock.patch('plainbox.impl.session.resume.SessionPeekHelper4') | 217 | @mock.patch('plainbox.impl.session.resume.SessionPeekHelper4') |
106 | 218 | def test_peek_dispatch_v4(self, mocked_helper4): | 218 | def test_peek_dispatch_v4(self, mocked_helper4): |
107 | @@ -221,7 +221,7 @@ | |||
108 | 221 | b'{"app_blob":null,"flags":[],"running_job_name":null,"title":null' | 221 | b'{"app_blob":null,"flags":[],"running_job_name":null,"title":null' |
109 | 222 | b'},"results":{}},"version":4}') | 222 | b'},"results":{}},"version":4}') |
110 | 223 | SessionPeekHelper().peek(data) | 223 | SessionPeekHelper().peek(data) |
112 | 224 | mocked_helper4.resume_json.assertCalledOnce() | 224 | mocked_helper4.resume_json.assert_called_once() |
113 | 225 | 225 | ||
114 | 226 | @mock.patch('plainbox.impl.session.resume.SessionPeekHelper5') | 226 | @mock.patch('plainbox.impl.session.resume.SessionPeekHelper5') |
115 | 227 | def test_peek_dispatch_v5(self, mocked_helper5): | 227 | def test_peek_dispatch_v5(self, mocked_helper5): |
116 | @@ -230,7 +230,7 @@ | |||
117 | 230 | b'{"app_blob":null,"flags":[],"running_job_name":null,"title":null' | 230 | b'{"app_blob":null,"flags":[],"running_job_name":null,"title":null' |
118 | 231 | b'},"results":{}},"version":5}') | 231 | b'},"results":{}},"version":5}') |
119 | 232 | SessionPeekHelper().peek(data) | 232 | SessionPeekHelper().peek(data) |
121 | 233 | mocked_helper5.resume_json.assertCalledOnce() | 233 | mocked_helper5.resume_json.assert_called_once() |
122 | 234 | 234 | ||
123 | 235 | @mock.patch('plainbox.impl.session.resume.SessionPeekHelper6') | 235 | @mock.patch('plainbox.impl.session.resume.SessionPeekHelper6') |
124 | 236 | def test_peek_dispatch_v6(self, mocked_helper6): | 236 | def test_peek_dispatch_v6(self, mocked_helper6): |
125 | @@ -239,7 +239,7 @@ | |||
126 | 239 | b'{"app_blob":null,"flags":[],"running_job_name":null,"title":null' | 239 | b'{"app_blob":null,"flags":[],"running_job_name":null,"title":null' |
127 | 240 | b'},"results":{}},"version":6}') | 240 | b'},"results":{}},"version":6}') |
128 | 241 | SessionPeekHelper().peek(data) | 241 | SessionPeekHelper().peek(data) |
130 | 242 | mocked_helper6.resume_json.assertCalledOnce() | 242 | mocked_helper6.resume_json.assert_called_once() |
131 | 243 | 243 | ||
132 | 244 | class SessionResumeTests(TestCase): | 244 | class SessionResumeTests(TestCase): |
133 | 245 | 245 | ||
134 | @@ -430,8 +430,8 @@ | |||
135 | 430 | """ | 430 | """ |
136 | 431 | with mock.patch.object(self.helper, attribute='_build_SessionState'): | 431 | with mock.patch.object(self.helper, attribute='_build_SessionState'): |
137 | 432 | self.helper._build_SessionState(self.session_repr) | 432 | self.helper._build_SessionState(self.session_repr) |
140 | 433 | self.helper._build_SessionState.assertCalledOnceWith( | 433 | self.helper._build_SessionState.assert_called_once_with( |
141 | 434 | self.session_repr, None) | 434 | self.session_repr) |
142 | 435 | 435 | ||
143 | 436 | def test_calls_restore_SessionState_jobs_and_results(self): | 436 | def test_calls_restore_SessionState_jobs_and_results(self): |
144 | 437 | """ | 437 | """ |
145 | @@ -439,11 +439,14 @@ | |||
146 | 439 | _build_SessionState(). | 439 | _build_SessionState(). |
147 | 440 | """ | 440 | """ |
148 | 441 | mpo = mock.patch.object | 441 | mpo = mock.patch.object |
151 | 442 | with mpo(self.helper, '_build_SessionState'), \ | 442 | with mpo(self.helper, '_restore_SessionState_jobs_and_results'), \ |
152 | 443 | mpo(self.helper, '_restore_SessionState_jobs_and_results'): | 443 | mpo(self.helper, '_restore_SessionState_metadata'), \ |
153 | 444 | mpo(self.helper, '_restore_SessionState_job_list'), \ | ||
154 | 445 | mpo(self.helper, '_restore_SessionState_mandatory_job_list'), \ | ||
155 | 446 | mpo(self.helper, '_restore_SessionState_desired_job_list'): | ||
156 | 444 | session = self.helper._build_SessionState(self.session_repr) | 447 | session = self.helper._build_SessionState(self.session_repr) |
157 | 445 | self.helper._restore_SessionState_jobs_and_results. \ | 448 | self.helper._restore_SessionState_jobs_and_results. \ |
159 | 446 | assertCalledOnceWith(session, self.session_repr) | 449 | assert_called_once_with(session, self.session_repr) |
160 | 447 | 450 | ||
161 | 448 | def test_calls_restore_SessionState_metadata(self): | 451 | def test_calls_restore_SessionState_metadata(self): |
162 | 449 | """ | 452 | """ |
163 | @@ -451,11 +454,14 @@ | |||
164 | 451 | _build_SessionState(). | 454 | _build_SessionState(). |
165 | 452 | """ | 455 | """ |
166 | 453 | mpo = mock.patch.object | 456 | mpo = mock.patch.object |
169 | 454 | with mpo(self.helper, '_build_SessionState'), \ | 457 | with mpo(self.helper, '_restore_SessionState_jobs_and_results'), \ |
170 | 455 | mpo(self.helper, '_restore_SessionState_metadata'): | 458 | mpo(self.helper, '_restore_SessionState_metadata'), \ |
171 | 459 | mpo(self.helper, '_restore_SessionState_job_list'), \ | ||
172 | 460 | mpo(self.helper, '_restore_SessionState_mandatory_job_list'), \ | ||
173 | 461 | mpo(self.helper, '_restore_SessionState_desired_job_list'): | ||
174 | 456 | session = self.helper._build_SessionState(self.session_repr) | 462 | session = self.helper._build_SessionState(self.session_repr) |
175 | 457 | self.helper._restore_SessionState_metadata. \ | 463 | self.helper._restore_SessionState_metadata. \ |
177 | 458 | assertCalledOnceWith(session, self.session_repr) | 464 | assert_called_once_with(session.metadata, self.session_repr) |
178 | 459 | 465 | ||
179 | 460 | def test_calls_restore_SessionState_desired_job_list(self): | 466 | def test_calls_restore_SessionState_desired_job_list(self): |
180 | 461 | """ | 467 | """ |
181 | @@ -463,11 +469,14 @@ | |||
182 | 463 | _build_SessionState(). | 469 | _build_SessionState(). |
183 | 464 | """ | 470 | """ |
184 | 465 | mpo = mock.patch.object | 471 | mpo = mock.patch.object |
186 | 466 | with mpo(self.helper, '_build_SessionState'), \ | 472 | with mpo(self.helper, '_restore_SessionState_jobs_and_results'), \ |
187 | 473 | mpo(self.helper, '_restore_SessionState_metadata'), \ | ||
188 | 474 | mpo(self.helper, '_restore_SessionState_job_list'), \ | ||
189 | 475 | mpo(self.helper, '_restore_SessionState_mandatory_job_list'), \ | ||
190 | 467 | mpo(self.helper, '_restore_SessionState_desired_job_list'): | 476 | mpo(self.helper, '_restore_SessionState_desired_job_list'): |
191 | 468 | session = self.helper._build_SessionState(self.session_repr) | 477 | session = self.helper._build_SessionState(self.session_repr) |
192 | 469 | self.helper._restore_SessionState_desired_job_list. \ | 478 | self.helper._restore_SessionState_desired_job_list. \ |
194 | 470 | assertCalledOnceWith(session, self.session_repr) | 479 | assert_called_once_with(session, self.session_repr) |
195 | 471 | 480 | ||
196 | 472 | def test_calls_restore_SessionState_job_list(self): | 481 | def test_calls_restore_SessionState_job_list(self): |
197 | 473 | """ | 482 | """ |
198 | @@ -475,10 +484,13 @@ | |||
199 | 475 | _build_SessionState(). | 484 | _build_SessionState(). |
200 | 476 | """ | 485 | """ |
201 | 477 | mpo = mock.patch.object | 486 | mpo = mock.patch.object |
204 | 478 | with mpo(self.helper, '_build_SessionState'), \ | 487 | with mpo(self.helper, '_restore_SessionState_jobs_and_results'), \ |
205 | 479 | mpo(self.helper, '_restore_SessionState_job_list'): | 488 | mpo(self.helper, '_restore_SessionState_metadata'), \ |
206 | 489 | mpo(self.helper, '_restore_SessionState_job_list'), \ | ||
207 | 490 | mpo(self.helper, '_restore_SessionState_mandatory_job_list'), \ | ||
208 | 491 | mpo(self.helper, '_restore_SessionState_desired_job_list'): | ||
209 | 480 | session = self.helper._build_SessionState(self.session_repr) | 492 | session = self.helper._build_SessionState(self.session_repr) |
211 | 481 | self.helper._restore_SessionState_job_list.assertCalledOnceWith( | 493 | self.helper._restore_SessionState_job_list.assert_called_once_with( |
212 | 482 | session, self.session_repr) | 494 | session, self.session_repr) |
213 | 483 | 495 | ||
214 | 484 | 496 | ||
215 | 485 | 497 | ||
216 | === modified file 'plainbox/plainbox/impl/session/test_suspend.py' | |||
217 | --- plainbox/plainbox/impl/session/test_suspend.py 2015-08-20 11:17:46 +0000 | |||
218 | +++ plainbox/plainbox/impl/session/test_suspend.py 2015-08-28 10:02:28 +0000 | |||
219 | @@ -217,25 +217,29 @@ | |||
220 | 217 | data = self.helper._repr_IOLogRecord(record) | 217 | data = self.helper._repr_IOLogRecord(record) |
221 | 218 | self.assertEqual(data, [0.0, "stdout", "YmluYXJ5IGRhdGE="]) | 218 | self.assertEqual(data, [0.0, "stdout", "YmluYXJ5IGRhdGE="]) |
222 | 219 | 219 | ||
225 | 220 | @mock.patch('plainbox.impl.session.suspend.SessionSuspendHelper') | 220 | def test_repr_JobResult_with_MemoryJobResult(self): |
224 | 221 | def test_repr_JobResult_with_MemoryJobResult(self, mocked_helper): | ||
226 | 222 | """ | 221 | """ |
227 | 223 | verify that _repr_JobResult() called with MemoryJobResult | 222 | verify that _repr_JobResult() called with MemoryJobResult |
228 | 224 | calls _repr_MemoryJobResult | 223 | calls _repr_MemoryJobResult |
229 | 225 | """ | 224 | """ |
233 | 226 | result = MemoryJobResult({}) | 225 | mpo = mock.patch.object |
234 | 227 | self.helper._repr_JobResult(result, self.session_dir) | 226 | with mpo(self.helper, '_repr_MemoryJobResult'): |
235 | 228 | mocked_helper._repr_MemoryJobResult.assertCalledOnceWith(result) | 227 | result = MemoryJobResult({}) |
236 | 228 | self.helper._repr_JobResult(result, self.session_dir) | ||
237 | 229 | self.helper._repr_MemoryJobResult.assert_called_once_with( | ||
238 | 230 | result, None) | ||
239 | 229 | 231 | ||
242 | 230 | @mock.patch('plainbox.impl.session.suspend.SessionSuspendHelper') | 232 | def test_repr_JobResult_with_DiskJobResult(self): |
241 | 231 | def test_repr_JobResult_with_DiskJobResult(self, mocked_helper): | ||
243 | 232 | """ | 233 | """ |
244 | 233 | verify that _repr_JobResult() called with DiskJobResult | 234 | verify that _repr_JobResult() called with DiskJobResult |
245 | 234 | calls _repr_DiskJobResult | 235 | calls _repr_DiskJobResult |
246 | 235 | """ | 236 | """ |
250 | 236 | result = DiskJobResult({}) | 237 | mpo = mock.patch.object |
251 | 237 | self.helper._repr_JobResult(result, self.session_dir) | 238 | with mpo(self.helper, '_repr_DiskJobResult'): |
252 | 238 | mocked_helper._repr_DiskJobResult.assertCalledOnceWith(result) | 239 | result = DiskJobResult({}) |
253 | 240 | self.helper._repr_JobResult(result, self.session_dir) | ||
254 | 241 | self.helper._repr_DiskJobResult.assert_called_once_with( | ||
255 | 242 | result, None) | ||
256 | 239 | 243 | ||
257 | 240 | def test_repr_JobResult_with_junk(self): | 244 | def test_repr_JobResult_with_junk(self): |
258 | 241 | """ | 245 | """ |
Let's land this and iterate.