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

Unified Diff: appengine/findit/model/flake/test/flake_culprit_test.py

Issue 2608853002: [Findit] Adding suspected CL to master flake analysis in preparation for try jobs (Closed)
Patch Set: Addressing comment 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 side-by-side diff with in-line comments
Download patch
Index: appengine/findit/model/flake/test/flake_culprit_test.py
diff --git a/appengine/findit/model/flake/test/flake_culprit_test.py b/appengine/findit/model/flake/test/flake_culprit_test.py
new file mode 100644
index 0000000000000000000000000000000000000000..2b9dc599d1918b2326c39d3c9ebb44bfb690ec3d
--- /dev/null
+++ b/appengine/findit/model/flake/test/flake_culprit_test.py
@@ -0,0 +1,21 @@
+# Copyright 2017 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from gae_libs.testcase import TestCase
+
+from model.flake.flake_culprit import FlakeCulprit
+
+
+class FlakeculpritTest(TestCase):
+
+ def testCreate(self):
+ repo_name = 'chromium'
+ revision = 'a1b2c3d4'
+ commit_position = 12345
+ url = 'url'
+ culprit = FlakeCulprit.Create(repo_name, revision, commit_position, url)
+ self.assertEqual(repo_name, culprit.repo_name)
+ self.assertEqual(revision, culprit.revision)
+ self.assertEqual(commit_position, culprit.commit_position)
+ self.assertEqual(url, culprit.url)
« no previous file with comments | « appengine/findit/model/flake/master_flake_analysis.py ('k') | appengine/findit/model/flake/test/master_flake_analysis_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698