bbb-status/src/utilTest.py
2020-11-25 19:35:39 +01:00

25 lines
538 B
Python

import unittest
import util
class UtilTestCase(unittest.TestCase):
def test_indentString(self):
unindented = "Hello\nWorld!"
expected = "\tHello\n\tWorld!"
actual = util.indentMultilineStr(unindented)
self.assertEqual(expected, actual)
def test_indentString2(self):
unindented = "Hello\nWorld!\n"
expected = "\tHello\n\tWorld!\n"
actual = util.indentMultilineStr(unindented)
self.assertEqual(expected, actual)
if __name__ == '__main__':
unittest.main()