15 lines
363 B
Python
Executable File
15 lines
363 B
Python
Executable File
import unittest
|
|
|
|
class Test_Alert_Config(unittest.TestCase):
|
|
def test(self) :
|
|
from alert_config import Alert_Config
|
|
try :
|
|
Alert_Config(None)
|
|
self.fail("did not fail on nil yaml_config")
|
|
except Exception :
|
|
pass
|
|
self.assertEqual("a", Alert_Config({"id":"a"}).id)
|
|
|
|
if __name__ == "__main__" :
|
|
unittest.main()
|