Skip to content
Browse files

fix tests formatting

  • Loading branch information...
1 parent ab7057b commit 4f44757935759238ff1f6610688b03dbb8b03ee6 @cyberdelia committed Dec 20, 2012
Showing with 10 additions and 5 deletions.
  1. +2 −1 tests/instruments/test_gauge.py
  2. +4 −2 tests/instruments/test_histogram.py
  3. +2 −1 tests/test_metrology.py
  4. +2 −1 tests/test_registry.py
View
3 tests/instruments/test_gauge.py
@@ -2,7 +2,8 @@
from unittest import TestCase
-from metrology.instruments.gauge import Gauge, RatioGauge, PercentGauge, ToggleGauge
+from metrology.instruments.gauge import Gauge, RatioGauge, PercentGauge, \
+ ToggleGauge
class DummyGauge(Gauge):
View
6 tests/instruments/test_histogram.py
@@ -2,7 +2,8 @@
from unittest import TestCase
from metrology.stats.sample import ExponentiallyDecayingSample
-from metrology.instruments.histogram import Histogram, HistogramUniform, HistogramExponentiallyDecaying
+from metrology.instruments.histogram import Histogram, HistogramUniform, \
+ HistogramExponentiallyDecaying
class HistogramTest(TestCase):
@@ -117,7 +118,8 @@ def update():
self.assertEqual(49.5, snapshot.median)
def test_sample_overflow_error(self):
- sample = ExponentiallyDecayingSample(Histogram.DEFAULT_SAMPLE_SIZE, Histogram.DEFAULT_ALPHA)
+ sample = ExponentiallyDecayingSample(Histogram.DEFAULT_SAMPLE_SIZE,
+ Histogram.DEFAULT_ALPHA)
sample.start_time = 946681200.0
histogram = Histogram(sample)
histogram.update(5)
View
3 tests/test_metrology.py
@@ -36,4 +36,5 @@ def test_histogram(self):
self.assertTrue(Metrology.histogram('test') is not None)
def test_health_check(self):
- self.assertTrue(Metrology.health_check('test', HealthCheck) is not None)
+ health = Metrology.health_check('test', HealthCheck)
+ self.assertTrue(health is not None)
View
3 tests/test_registry.py
@@ -41,4 +41,5 @@ def test_histogram(self):
self.assertTrue(self.registry.histogram('test') is not None)
def test_health_check(self):
- self.assertTrue(self.registry.health_check('test', DummyHealthCheck()) is not None)
+ health = self.registry.health_check('test', DummyHealthCheck())
+ self.assertTrue(health is not None)

0 comments on commit 4f44757

Please sign in to comment.
Something went wrong with that request. Please try again.