def test_split_document_into_line_chunks(self): num_lines = len(self.text_file.file.readlines()) print num_lines chunks = split_document_into_line_chunks(self.text_file, 5) print chunks self.assertEquals(len(chunks), 10)
def test_split_document_into_line_chunks(self): file = self.line_file chunks = split_document_into_line_chunks(self.text_file.file, 'test_file', 10) self.assertEquals(len(chunks), 1)
def test_split_document_into_line_chunks(self): file = self.line_file chunks = split_document_into_line_chunks(self.text_file.file, 'test_file', 10) self.assertEquals(len(chunks), 1)
def test_split_document_into_line_chunks(self): num_lines = len(self.text_file.file.readlines()) print num_lines chunks = split_document_into_line_chunks(self.text_file, 5) print chunks self.assertEquals(len(chunks), 10)