def METHOD_NAME(self):
    """Test lines shorter than chunksize, data longer than chunk_size."""
    chunk_size = 500
    # Make sure the test data fits the testcase:
    #
    # 1. The lines must be shorter than the chunk_size, so that all
    # chunks can be shorter than chunk_size
    self.assertTrue(max(map(len, csv_test_data.splitlines())) < chunk_size)
    # 2. The data must be longer than chunk_size so that chunking is
    # useful
    self.assertTrue(len(csv_test_data) > chunk_size)
    # The actual test
    chunked = list(read_delimited_chunks(io.BytesIO(csv_test_data),
                                         chunk_size))
    # Appending all chunks yields the original unchunked data
    self.assertEqual(csv_test_data, b"".join(chunked))
    # All chunks are shorter than chunk_size
    self.assertTrue(max(map(len, chunked)) <= chunk_size)
    # All chunks were split at line separators
    self.assertEqual(csv_test_data.splitlines(),
                     list(itertools.chain.from_iterable(
                         chunk.splitlines() for chunk in chunked)))