OLD | NEW |
| (Empty) |
1 # Copyright 2015 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 infra_libs.ts_mon.common import interface | |
8 from infra_libs.ts_mon.common import standard_metrics | |
9 from infra_libs.ts_mon.common import targets | |
10 from infra_libs import ts_mon | |
11 | |
12 class StandardMetricsTest(unittest.TestCase): | |
13 | |
14 def setUp(self): | |
15 interface.state.target = targets.TaskTarget( | |
16 'test_service', 'test_job', 'test_region', 'test_host') | |
17 ts_mon.reset_for_unittest() | |
18 | |
19 def test_up(self): | |
20 standard_metrics.init() | |
21 self.assertTrue(standard_metrics.up.get()) | |
OLD | NEW |