def test_thresholds(self): field = Field('a', warning=10, critical=100) field.config() self.assertEqual('''a.label a a.warning 10 a.critical 100 ''', self.streams.stdout)
def test_simple(self): field = Field('a') field.config() self.assertEqual('''a.label a ''', self.streams.stdout)