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

Unified Diff: infra_libs/ts_mon/test/errors_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « infra_libs/ts_mon/test/distribution_test.py ('k') | infra_libs/ts_mon/test/helpers_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra_libs/ts_mon/test/errors_test.py
diff --git a/infra_libs/ts_mon/test/errors_test.py b/infra_libs/ts_mon/test/errors_test.py
deleted file mode 100644
index 7032dc8e68d7db9a6aefd8da8c7e91c34047d6ca..0000000000000000000000000000000000000000
--- a/infra_libs/ts_mon/test/errors_test.py
+++ /dev/null
@@ -1,55 +0,0 @@
-# Copyright 2015 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import unittest
-
-from infra_libs.ts_mon import errors
-
-
-class ErrorsTest(unittest.TestCase):
-
- def test_decreasing_value(self):
- with self.assertRaises(errors.MonitoringDecreasingValueError) as e:
- raise errors.MonitoringDecreasingValueError('test', 1, 0)
- str(e.exception)
-
- def test_duplicate_registration(self):
- with self.assertRaises(errors.MonitoringDuplicateRegistrationError) as e:
- raise errors.MonitoringDuplicateRegistrationError('test')
- str(e.exception)
-
- def test_increment_unset_value(self):
- with self.assertRaises(errors.MonitoringIncrementUnsetValueError) as e:
- raise errors.MonitoringIncrementUnsetValueError('test')
- str(e.exception)
-
- def test_invalid_value_type(self):
- with self.assertRaises(errors.MonitoringInvalidValueTypeError) as e:
- raise errors.MonitoringInvalidValueTypeError('test', 'foo')
- str(e.exception)
-
- def test_invalid_field_type(self):
- with self.assertRaises(errors.MonitoringInvalidFieldTypeError) as e:
- raise errors.MonitoringInvalidFieldTypeError('test', 'foo', 'bar')
- str(e.exception)
-
- def test_too_many_fields(self):
- with self.assertRaises(errors.MonitoringTooManyFieldsError) as e:
- raise errors.MonitoringTooManyFieldsError('test', {'foo': 'bar'})
- str(e.exception)
-
- def test_no_configured_monitor(self):
- with self.assertRaises(errors.MonitoringNoConfiguredMonitorError) as e:
- raise errors.MonitoringNoConfiguredMonitorError('test')
- str(e.exception)
-
- def test_no_configured_monitor_flush(self):
- with self.assertRaises(errors.MonitoringNoConfiguredMonitorError) as e:
- raise errors.MonitoringNoConfiguredMonitorError(None)
- str(e.exception)
-
- def test_no_configured_target(self):
- with self.assertRaises(errors.MonitoringNoConfiguredTargetError) as e:
- raise errors.MonitoringNoConfiguredTargetError('test')
- str(e.exception)
« no previous file with comments | « infra_libs/ts_mon/test/distribution_test.py ('k') | infra_libs/ts_mon/test/helpers_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698