class_docstr: Checks all functions of the GitCodeDriver
class_docstr_tok: ["Checks","all","functions","of","the","GitCodeDriver"]
code: def test_ensure_datmo_files_ignored(self):
      self.git_code_manager.init()
      # Remove .datmo from exclude
      exclude_file = os.path.join(
          self.git_code_manager.filepath, ".git/info/exclude"
      )
      with open(exclude_file) as f:
          lines = f.readlines()
      with open(exclude_file, "w") as f:
          f.writelines([to_unicode(item) for item in lines[:-2]])
      result = self.git_code_manager.ensure_datmo_files_ignored()
      assert (
          result and self.git_code_manager.exists_datmo_files_ignored()
      )
  
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 20 for calling the TestGitCodeDriver obj's underlying member method code with example usage: obj.test_ensure_datmo_files_ignored() without return types