class_docstr: Checks all functions of the GitCodeDriver
class_docstr_tok: ["Checks","all","functions","of","the","GitCodeDriver"]
code: def test_exists_datmo_files_in_worktree(self):
      self.git_code_manager.init()
      # Add random file to .datmo directory before next ref
      os.makedirs(
          os.path.join(self.git_code_manager.filepath, ".datmo")
      )
      random_filepath = os.path.join(
          self.git_code_manager.filepath, ".datmo", ".test"
      )
      with open(random_filepath, "wb") as f:
          f.write(to_bytes(str("test")))
      # Check that it doesn't exist
      result = self.git_code_manager.exists_datmo_files_in_worktree()
      assert result == False
      # Add files and commit then check they exist
      self.git_code_manager.add(".datmo", "-f")
      self.git_code_manager.commit(["-m", "test message"])
      result = self.git_code_manager.exists_datmo_files_in_worktree()
      assert result == True
  
imports: from __future__ import division
  from __future__ import unicode_literals
  import os
  import time
  import shutil
  import tempfile
  import platform
  from io import open
  from datmo.core.controller.code.driver.git import GitCodeDriver, GitHostDriver
  from datmo.core.util.exceptions import CommitFailed, CommitDoesNotExist, PathDoesNotExist, GitExecutionError, DatmoFolderInWorkTree, UnstagedChanges
label_desc: Use image node_id 21 for calling the TestGitCodeDriver obj's underlying member method code with example usage: obj.test_exists_datmo_files_in_worktree() without return types