class_docstr: Checks all functions of the FileCodeDriver
class_docstr_tok: ["Checks","all","functions","of","the","FileCodeDriver"]
code: def test_tracked_files(self):
      self.__setup()
      # Test if catches file (no .datmoignore)
      result = self.file_code_driver._get_tracked_files()
      assert result == ["test.txt"]
  
      # Test if catches multiple files (no .datmoignore)
      with open(os.path.join(self.temp_dir, "test2.txt"), "wb") as f:
          f.write(to_bytes("hello"))
      result = self.file_code_driver._get_tracked_files()
      for item in result:
          assert item in ["test.txt", "test2.txt"]
  
      # Test if it ignores any .datmo directory or files within
      with open(
          os.path.join(
              self.file_code_driver._datmo_directory_path, "test"
          ),
          "wb",
      ) as f:
          f.write(to_bytes("cool"))
      result = self.file_code_driver._get_tracked_files()
      for item in result:
          assert (
              os.path.join(
                  self.file_code_driver._datmo_directory_name, "test"
              )
              not in item
          )
          assert item in ["test.txt", "test2.txt"]
  
      # Test if it ignores any .git directory or files within
      os.makedirs(os.path.join(self.temp_dir, ".git"))
      with open(os.path.join(self.temp_dir, ".git", "test"), "wb") as f:
          f.write(to_bytes("cool"))
      result = self.file_code_driver._get_tracked_files()
      for item in result:
          assert os.path.join(".git", "test") not in item
          assert item in ["test.txt", "test2.txt"]
  
      # Test if ignores one file and only shows one
      with open(os.path.join(self.temp_dir, ".datmoignore"), "wb") as f:
          f.write(to_bytes("test.txt"))
      result = self.file_code_driver._get_tracked_files()
      assert result == ["test2.txt"]
  
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.file import FileCodeDriver
  from datmo.core.util.exceptions import PathDoesNotExist, FileIOError, CodeNotInitialized, UnstagedChanges, CommitDoesNotExist
label_desc: Use image node_id 9 for calling the TestFileCodeDriver obj's underlying member method code with example usage: obj.test_tracked_files() without return types