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

Unified Diff: appengine/monorail/framework/test/artifactcollision_test.py

Issue 1868553004: Open Source Monorail (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Rebase Created 4 years, 8 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
« no previous file with comments | « appengine/monorail/framework/test/alerts_test.py ('k') | appengine/monorail/framework/test/banned_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/monorail/framework/test/artifactcollision_test.py
diff --git a/appengine/monorail/framework/test/artifactcollision_test.py b/appengine/monorail/framework/test/artifactcollision_test.py
new file mode 100644
index 0000000000000000000000000000000000000000..f907d44273145d6e5b132c656ec61e4432838d34
--- /dev/null
+++ b/appengine/monorail/framework/test/artifactcollision_test.py
@@ -0,0 +1,30 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is govered by a BSD-style
+# license that can be found in the LICENSE file or at
+# https://developers.google.com/open-source/licenses/bsd
+
+"""Tests for artifactcollision module."""
+
+import unittest
+
+from framework import artifactcollision
+from services import service_manager
+from testing import testing_helpers
+
+
+class ArtifactCollisionTest(unittest.TestCase):
+
+ def setUp(self):
+ self.services = service_manager.Services()
+ self.servlet = artifactcollision.ArtifactCollision(
+ 'rerq', 'res', services=self.services)
+ self.mr = testing_helpers.MakeMonorailRequest(
+ params={'name': 'artifact'}, method='POST')
+ self.mr.project_name = 'monorail'
+ self.mr.continue_issue_id = '123'
+
+ def testGatherPageData(self):
+ page_data = self.servlet.GatherPageData(self.mr)
+ self.assertEqual('artifact', page_data['artifact_name'])
+ self.assertEqual('/p/monorail/issues/detail?id=123',
+ page_data['artifact_detail_url'])
« no previous file with comments | « appengine/monorail/framework/test/alerts_test.py ('k') | appengine/monorail/framework/test/banned_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698