text: import tempfile
  import os
  
  def test_count_word_occurrence_in_file():
      _, temporary_file_name = tempfile.mkstemp()
      with open(temporary_file_name, 'w') as f:
          f.write("one two one two three four")
      count = count_word_occurrence_in_file(temporary_file_name, "one")
      assert count == 2
      os.remove(temporary_file_name)
  