code: def test_partial_bar_characters(self):
      steps = 80
      bar_length = 10
      num_partials = 8
      bar_characters = list(map(str, range(num_partials)))
      progress_bar = ProgressBar(
          steps=steps,
          bar_length=bar_length,
          bar_character="#",
          partial_bar_characters=bar_characters,
      )
      for step in range(steps):
          partial_bar_character = bar_characters[step % num_partials]
          num_characters = step // num_partials
          self.assertEqual(
              len(progress_bar.progress_bar_formatting()), bar_length
          )
          self.assertEqual(
              progress_bar.progress_bar_formatting(),
              "#" * num_characters
              + partial_bar_character
              + " " * (bar_length - num_characters - 1),
          )
          progress_bar.update()
  
      self.assertEqual(
          progress_bar.progress_bar_formatting(), "#" * bar_length
      )
  
file_path: poutyne/tests/framework/callbacks/test_progress_bar.py
imports: from unittest import TestCase
  from poutyne import ProgressBar
label_desc: Use image node_id 9 for calling the ProgressBarTest obj's underlying member method code with example usage: obj.test_partial_bar_characters() without return types