예제 #1
0
    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)
예제 #2
0
    def test_simple(self):
        field = Field('a')
        field.config()
        self.assertEqual('''a.label a
''', self.streams.stdout)