From 29089cd3094d6a7ec3cf615399bd1a0bf8335e6a Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Tue, 10 Sep 2024 06:46:35 -0600 Subject: [PATCH] adding documentation --- tests/ush/python_utils/test_misc.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/ush/python_utils/test_misc.py b/tests/ush/python_utils/test_misc.py index f00ef6c33..338a3df0b 100644 --- a/tests/ush/python_utils/test_misc.py +++ b/tests/ush/python_utils/test_misc.py @@ -2,17 +2,22 @@ from ush.python_utils.misc import * class TestMisc: + """Test the misc.py functions.""" def test_uc(self): + """Test the uppercase() function.""" assert uppercase('s') == 'S' def test_lc(self): + """Test the lowercase() function.""" assert lowercase('S') == 's' def test_find_pattern_in_str(self): + """Test the find_pattern_in_str() function.""" assert not find_pattern_in_str('.', 's') def test_find_pattern_in_fike(self): + """Test the find_pattern_in_file() function.""" f = open("test_misc.txt", "w") f.write("Hello World from " + f.name) f.close()