예제 #1
0
 def test_simple(self):
     s = "foo\n"
     assert utils.clean_hanging_newline(s) == "foo"
     assert utils.clean_hanging_newline("foo") == "foo"
예제 #2
0
def test_clean_hanging_newline():
    s = "foo\n"
    assert utils.clean_hanging_newline(s) == "foo"
    assert utils.clean_hanging_newline("foo") == "foo"
예제 #3
0
파일: test_utils.py 프로젝트: nask0/opparis
def test_clean_hanging_newline():
    s = "foo\n"
    assert utils.clean_hanging_newline(s) == "foo"
    assert utils.clean_hanging_newline("foo") == "foo"
예제 #4
0
 def test_simple(self):
     s = "foo\n"
     assert utils.clean_hanging_newline(s) == "foo"
     assert utils.clean_hanging_newline("foo") == "foo"