129
126
def test_selects_newest_candidate(self):
130
127
with self.build_job_context() as root:
131
128
path_1234 = make_candidate_dir(
132
root, '1234', 'mybranch', '1234')
129
root, '1234-artifacts', 'mybranch', '1234')
133
130
make_candidate_dir(root, '1233', 'mybranch', '1233')
134
131
build_job_mock = self.run_main(root)
135
132
build_job_mock.assert_called_once_with('foo', {
139
135
'revision_build': '1234',