def METHOD_NAME(self):
    """
    Test generating chunked filenames
    """
    # split_large_files should be disabled when max_chunks is zero
    gzip_splitter = split_gzip.SplitGzipFile(
        'basefile', chunk_size_mb=1000, max_chunks=0
    )
    self.assertEqual(gzip_splitter._gen_chunk_filename(), 'basefile')
    # first chunk should be part nr 1
    gzip_splitter = split_gzip.SplitGzipFile(
        'basefile', chunk_size_mb=1000, max_chunks=20
    )
    self.assertEqual(gzip_splitter._gen_chunk_filename(), 'basefile.part00001')
    # generated file part should be in sync with chunk_seq
    gzip_splitter.chunk_seq = 5
    self.assertEqual(gzip_splitter._gen_chunk_filename(), 'basefile.part00005')
    # chunk seq should not increase if chunk_size is lower than split_file_chunk_size_mb
    gzip_splitter.current_chunk_size_mb = 500
    self.assertEqual(gzip_splitter._gen_chunk_filename(), 'basefile.part00005')
    # chunk seq should increase and size should reset if current_chunk_size_mb greater than chunk_size_mb
    gzip_splitter.current_chunk_size_mb = 1050
    self.assertEqual(gzip_splitter._gen_chunk_filename(), 'basefile.part00006')
    self.assertEqual(gzip_splitter.current_chunk_size_mb, 0)
    # chunk seq should not increase further if chunk_seq equals to split_file_max_chunks
    gzip_splitter.chunk_seq = 20
    self.assertEqual(gzip_splitter._gen_chunk_filename(), 'basefile.part00020')
    # chunk seq should not increase further if chunk_seq reached max_chunks, even if the chunk size is greater
    # than chunk_size_mb
    gzip_splitter.current_chunk_size_mb = 1050
    self.assertEqual(gzip_splitter._gen_chunk_filename(), 'basefile.part00020')