From 820f0933585f130ad28f501118e1f49ce670f320 Mon Sep 17 00:00:00 2001 From: Adrian Coveney Date: Mon, 14 May 2018 14:31:55 +0100 Subject: [PATCH] Add test for set_up_logging --- test/test_init_logging.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/test_init_logging.py diff --git a/test/test_init_logging.py b/test/test_init_logging.py new file mode 100644 index 00000000..2020fe21 --- /dev/null +++ b/test/test_init_logging.py @@ -0,0 +1,17 @@ +"""Unit tests for ssm/__init__.py.""" + +import unittest + +import ssm + + +class setUpLoggingTest(unittest.TestCase): + """Test cases for the set_up_logging function in ssm.__init__.""" + + def test_none_argurments(self): + """Check that calling the function with all None args fails.""" + self.assertRaises(KeyError, ssm.set_up_logging, None, None, None) + + +if __name__ == '__main__': + unittest.main()