blob: f907d44273145d6e5b132c656ec61e4432838d34 [file] [log] [blame]
# 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
"""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): = service_manager.Services()
self.servlet = artifactcollision.ArtifactCollision(
'rerq', 'res', = testing_helpers.MakeMonorailRequest(
params={'name': 'artifact'}, method='POST') = 'monorail' = '123'
def testGatherPageData(self):
page_data = self.servlet.GatherPageData(
self.assertEqual('artifact', page_data['artifact_name'])