text: import logging
  
  def test_load_jsons(caplog):
      caplog.set_level(logging.INFO)
      caplog.set_level(logging.DEBUG,logger="cryptoadvance.specter")
      import cryptoadvance.specter.helpers as helpers
      mydict = helpers.load_jsons("./tests/helpers_testdata")
      assert mydict["some_jsonfile"]["blub"] == "bla"
      assert mydict["some_other_jsonfile"]["bla"] == "blub"
      mydict = helpers.load_jsons("./tests/helpers_testdata",'id')
      assert "some_jsonfile" not in mydict
      # instead the value for the key "id" is now used as the top-level key
      assert mydict["ID123"]['blub'] == "bla"
      # This also assumes that the key is unique!!!! 
      assert mydict["ID124"]['bla'] == "blub"
      # ToDo: check the uniqueness in the implementation to avoid issues
      # the filename is added as alias
      assert mydict["ID123"]['alias'] == "some_jsonfile"
      # We also get the fullpath of that file:
      assert mydict["ID123"]['fullpath'] == "./tests/helpers_testdata/some_jsonfile.json"
      # Quite handy if you want to get rid of it which is as easy as:
      # os.remove(mydict["ID123"]['fullpath'])
  
  def test_which(caplog):
      caplog.set_level(logging.INFO)
      caplog.set_level(logging.DEBUG,logger="cryptoadvance.specter")
      import cryptoadvance.specter.helpers as helpers
      try:
          helpers.which("some_non_existing_binary")
          assert False, "Should raise an Exception"
      except:
          pass
      assert helpers.which("date") == "/bin/date" or helpers.which("date") == "/usr/bin/date" # travis-CI has it on /bin/date
      