diff options
| author | Scott Gasch <[email protected]> | 2021-07-28 22:13:43 -0700 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2021-07-28 22:13:43 -0700 |
| commit | 4faa994d32223c8d560d9dad0ca90a3f7eb10d6a (patch) | |
| tree | 1200e5615d94247a120b98a4ddceb2cd6674e0af /tests/string_utils_test.py | |
| parent | c79ecbf708a63a54a9c3e8d189b65d4794930082 (diff) | |
Money, Rate, CentCount and a bunch of bugfixes.
Diffstat (limited to 'tests/string_utils_test.py')
| -rwxr-xr-x | tests/string_utils_test.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/string_utils_test.py b/tests/string_utils_test.py index 0472daa..cc57036 100755 --- a/tests/string_utils_test.py +++ b/tests/string_utils_test.py @@ -180,6 +180,12 @@ class TestStringUtils(unittest.TestCase): self.assertFalse(su.is_snake_case('thisIsATest')) self.assertTrue(su.is_snake_case('this_is_a_test')) + def test_sprintf_context(self): + with su.SprintfStdout() as buf: + print("This is a test.") + print("This is another one.") + self.assertEqual('This is a test.\nThis is another one.\n', buf()) + if __name__ == '__main__': bootstrap.initialize(unittest.main)() |
