def test_bool_value_false(self): self.params['key'] = 'untrue' value = ServiceCheck._bool_value(self.params, 'key') self.assertFalse(value)
def test_bool_value_true(self): self.params['key'] = 'true' value = ServiceCheck._bool_value(self.params, 'key') self.assertTrue(value)