diff options
author | Mark Haines <mjark@negativecurvature.net> | 2016-02-22 16:02:06 +0000 |
---|---|---|
committer | Mark Haines <mjark@negativecurvature.net> | 2016-02-22 16:02:06 +0000 |
commit | 4d14655c2bcd89d0d59c9e38d4cbb5114904b1d4 (patch) | |
tree | 236ee0906b1f693c8f4bfa8b19b2b6b462cf97b9 /tests/metrics | |
parent | Merge pull request #591 from matrix-org/markjh/coverage (diff) | |
parent | Add a test for TreeCache.__contains__ (diff) | |
download | synapse-4d14655c2bcd89d0d59c9e38d4cbb5114904b1d4.tar.xz |
Merge pull request #594 from matrix-org/markjh/coverage
Add a test for TreeCache.__contains__
Diffstat (limited to 'tests/metrics')
-rw-r--r-- | tests/metrics/test_metric.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/metrics/test_metric.py b/tests/metrics/test_metric.py index f9e5e5af01..f3c1927ce1 100644 --- a/tests/metrics/test_metric.py +++ b/tests/metrics/test_metric.py @@ -61,6 +61,9 @@ class CounterMetricTestCase(unittest.TestCase): 'vector{method="PUT"} 1', ]) + # Check that passing too few values errors + self.assertRaises(ValueError, counter.inc) + class CallbackMetricTestCase(unittest.TestCase): |