text: #! /usr/bin/env python3
  # -*- coding: utf-8 -*-
  #
  # michael a.g. aïvázis <michael.aivazis@para-sim.com>
  # (c) 1998-2021 all rights reserved
  
  
  def test():
      """
      Verify that content is flushed correctly when the same channel instance is used multiple times
      """
      # get the journal
      import journal
  
      # make a channel
      channel = journal.firewall(name="test.journal.firewall")
      # make it non-fatal
      channel.fatal = False
      # send the output to the trash
      channel.device = journal.trash()
  
      # a few times
      for _ in range(10):
          # inject
          channel.log("hello world!")
  
      # all done
      return
  
  
  # main
  if __name__ == "__main__":
      # run the test
      test()
  
  
  # end of file
  