def test_testName(self): color.blue("test here baby") inputText = """beatyModel\n\nim""" expected = """beatyModel\nim""" result = beatyModel.removeEmptyLines(inputText) assertMy.stringDiffByLines(result, expected)
def test_testName(self): color.blue("test here baby") inputText = "adfasd\n\n\tnadsfasd" expected = "adfasd\n\tnadsfasd" result = beatyModel.removeEmptyLines(inputText) assertMy.equals(result, expected)
def test_testName(self): color.blue("test here baby") inputText = """import sys sys.path.insert(0, '/Users/maks/Library/Application Support/Sublime Text 3/Packages/beatyFormatting') import beatyModel\n\n\nimport unittest import sys sys.path.insert(0, '/Users/maks/Library/Application Support/Sublime Text 3/Packages/util') import color""" expected = """import sys sys.path.insert(0, '/Users/maks/Library/Application Support/Sublime Text 3/Packages/beatyFormatting') import beatyModel import unittest import sys sys.path.insert(0, '/Users/maks/Library/Application Support/Sublime Text 3/Packages/util') import color""" result = beatyModel.removeEmptyLines(inputText) assertMy.stringDiffByLines(result, expected)