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

Side by Side Diff: appengine/findit/model/test/wf_try_job_data_test.py

Issue 2605803002: [Findit] Refactoring WfTryJobData into BaseTryJobData, WfTryJobData, and FlakeTryJobData (Closed)
Patch Set: Fixing code coverage Created 3 years, 11 months 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
« no previous file with comments | « appengine/findit/model/test/base_try_job_test.py ('k') | appengine/findit/model/wf_try_job.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 from gae_libs.testcase import TestCase
6
7 from model.wf_try_job import WfTryJob
8 from model.wf_try_job_data import WfTryJobData
9
10
11 class WfTryJobDataTest(TestCase):
12
13 def testProperties(self):
14 master_name = 'm'
15 builder_name = 'b'
16 build_number = 123
17 try_job_id = 'try_job_id'
18
19 try_job = WfTryJob.Create(master_name, builder_name, build_number)
20 try_job_data = WfTryJobData.Create(try_job_id)
21 try_job_data.try_job_key = try_job.key
22
23 self.assertEqual(master_name, try_job_data.master_name)
24 self.assertEqual(builder_name, try_job_data.builder_name)
25 self.assertEqual(build_number, try_job_data.build_number)
OLDNEW
« no previous file with comments | « appengine/findit/model/test/base_try_job_test.py ('k') | appengine/findit/model/wf_try_job.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698