コード例 #1
0
ファイル: test_parse_csv.py プロジェクト: jcbashdown/backdrop
    def test_ignores_trailing_empty_line(self):
        text = "asd\n"

        lines_list = list(lines(_string_io(text)))

        assert_that(lines_list, is_(["asd\n"]))
コード例 #2
0
ファイル: test_parse_csv.py プロジェクト: jcbashdown/backdrop
    def test_handles_emptylines(self):
        text = "q\n\rw\r\r\ne"

        lines_list = list(lines(_string_io(text)))

        assert_that(lines_list, is_(["q\n", "\r", "w\r", "\r\n", "e"]))
コード例 #3
0
ファイル: test_parse_csv.py プロジェクト: jcbashdown/backdrop
    def test_handles_CR_LF_and_CRLF(self):
        text = "1\n2\r3\r\n4"

        lines_list = list(lines(_string_io(text)))

        assert_that(lines_list, is_(["1\n", "2\r", "3\r\n", "4"]))
コード例 #4
0
ファイル: test_parse_csv.py プロジェクト: jcbashdown/backdrop
    def test_handles_CR_LF_and_CRLF(self):
        text = "1\n2\r3\r\n4"

        lines_list = list(lines(_string_io(text)))

        assert_that(lines_list, is_(["1\n", "2\r", "3\r\n", "4"]))
コード例 #5
0
ファイル: test_parse_csv.py プロジェクト: jcbashdown/backdrop
    def test_ignores_trailing_empty_line(self):
        text = "asd\n"

        lines_list = list(lines(_string_io(text)))

        assert_that(lines_list, is_(["asd\n"]))
コード例 #6
0
ファイル: test_parse_csv.py プロジェクト: jcbashdown/backdrop
    def test_handles_emptylines(self):
        text = "q\n\rw\r\r\ne"

        lines_list = list(lines(_string_io(text)))

        assert_that(lines_list, is_(["q\n", "\r", "w\r", "\r\n", "e"]))