| OLD | NEW |
| (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 import unittest |
| 6 |
| 7 from waterfall.flake import triggering_sources |
| 8 |
| 9 |
| 10 class FlakeAnalysisServiceTest(unittest.TestCase): |
| 11 |
| 12 def testGetDescriptionForTriggeringSource(self): |
| 13 self.assertEqual( |
| 14 'The analysis was triggered manually through Findit UI', |
| 15 triggering_sources.GetDescriptionForTriggeringSource( |
| 16 triggering_sources.FINDIT_UI, True)) |
| 17 self.assertEqual( |
| 18 'The analysis was triggered manually through Findit API', |
| 19 triggering_sources.GetDescriptionForTriggeringSource( |
| 20 triggering_sources.FINDIT_API, True)) |
| 21 self.assertEqual( |
| 22 'The analysis was triggered automatically through Findit pipeline', |
| 23 triggering_sources.GetDescriptionForTriggeringSource( |
| 24 triggering_sources.FINDIT_PIPELINE, False)) |
| 25 self.assertEqual( |
| 26 'The analysis was triggered automatically through Findit API', |
| 27 triggering_sources.GetDescriptionForTriggeringSource( |
| 28 triggering_sources.FINDIT_API, False)) |
| 29 |
| OLD | NEW |