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

Side by Side Diff: infra_libs/ts_mon/common/test/standard_metrics_test.py

Issue 1260293009: make version of ts_mon compatible with appengine (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: add noncululativedistribution metric to ts_mon imports Created 5 years, 4 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 unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import unittest 5 import unittest
6 6
7 from infra_libs.ts_mon import standard_metrics 7 try:
8 8 from infra_libs.ts_mon.common import standard_metrics
9 except ImportError: # pragma: no cover
10 from common import standard_metrics
9 11
10 class StandardMetricsTest(unittest.TestCase): 12 class StandardMetricsTest(unittest.TestCase):
11 13
12 def setUp(self): 14 def setUp(self):
13 standard_metrics.up.reset() 15 standard_metrics.up.reset()
14 16
15 def test_up(self): 17 def test_up(self):
16 standard_metrics.init() 18 standard_metrics.init()
17 self.assertTrue(standard_metrics.up.get()) 19 self.assertTrue(standard_metrics.up.get())
OLDNEW
« no previous file with comments | « infra_libs/ts_mon/common/test/metrics_test.py ('k') | infra_libs/ts_mon/common/test/targets_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698