Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Side by Side Diff: appengine/findit/waterfall/test/swarming_util_test.py

Issue 2488113005: [Findit] Re-org code. (Closed)
Patch Set: Address comments. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import collections 5 import collections
6 import json 6 import json
7 import os 7 import os
8 import urllib 8 import urllib
9 import zlib 9 import zlib
10 10
11 from common.retry_http_client import RetryHttpClient 11 from libs.http.retry_http_client import RetryHttpClient
12 from model.wf_config import FinditConfig 12 from model.wf_config import FinditConfig
13 from model.wf_step import WfStep 13 from model.wf_step import WfStep
14 from waterfall import swarming_util 14 from waterfall import swarming_util
15 from waterfall import waterfall_config 15 from waterfall import waterfall_config
16 from waterfall.swarming_task_request import SwarmingTaskRequest 16 from waterfall.swarming_task_request import SwarmingTaskRequest
17 from waterfall.test import wf_testcase 17 from waterfall.test import wf_testcase
18 18
19 19
20 class SwarmingHttpClient(RetryHttpClient): 20 class SwarmingHttpClient(RetryHttpClient):
21 21
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 575
576 def testGetTagValueInvalidTag(self): 576 def testGetTagValueInvalidTag(self):
577 tags = ['a:1', 'b:2'] 577 tags = ['a:1', 'b:2']
578 self.assertIsNone(swarming_util.GetTagValue(tags, 'c')) 578 self.assertIsNone(swarming_util.GetTagValue(tags, 'c'))
579 579
580 def testGenerateIsolatedDataOutputsrefNone(self): 580 def testGenerateIsolatedDataOutputsrefNone(self):
581 self.assertEqual({}, swarming_util._GenerateIsolatedData(None)) 581 self.assertEqual({}, swarming_util._GenerateIsolatedData(None))
582 582
583 def testFetchOutputJsonInfoFromIsolatedServerReturnNone(self): 583 def testFetchOutputJsonInfoFromIsolatedServerReturnNone(self):
584 self.assertIsNone(swarming_util._FetchOutputJsonInfoFromIsolatedServer( 584 self.assertIsNone(swarming_util._FetchOutputJsonInfoFromIsolatedServer(
585 None, self.http_client)) 585 None, self.http_client))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698